summary refs log tree commit diff
diff options
context:
space:
mode:
-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 ()