aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorOleg Pykhalov <go.wigust@gmail.com>2018-11-22 17:24:04 +0300
committerOleg Pykhalov <go.wigust@gmail.com>2018-12-03 08:04:51 +0300
commit37c6f11f8dfa1880db86a3510c9e50990304d76c (patch)
treeb221445899a9e5b375645751e66fa17b72b2f853 /guix
parent6efccabe4e2e3ea1bd14cd0e81bdb83d5f6baaea (diff)
downloadpatches-37c6f11f8dfa1880db86a3510c9e50990304d76c.tar
patches-37c6f11f8dfa1880db86a3510c9e50990304d76c.tar.gz
repl: Load user's initialization file.
* guix/scripts/repl.scm (guix-repl): Load user's initialization file.
Diffstat (limited to 'guix')
-rw-r--r--guix/scripts/repl.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 1a105f51ee..02169e8004 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -188,6 +188,11 @@ call THUNK."
(save-module-excursion
(lambda ()
(set-current-module user-module)
+ (and=> (getenv "HOME")
+ (lambda (home)
+ (let ((guile (string-append home "/.guile")))
+ (when (file-exists? guile)
+ (load guile)))))
;; Do not exit repl on SIGINT.
((@@ (ice-9 top-repl) call-with-sigint)
(lambda ()