repl: Load user's initialization file.

* guix/scripts/repl.scm (guix-repl): Load user's initialization file.
This commit is contained in:
Oleg Pykhalov 2018-11-22 17:24:04 +03:00
parent 6efccabe4e
commit 37c6f11f8d
No known key found for this signature in database
GPG key ID: 167F8EA5001AFA9C

View file

@ -188,6 +188,11 @@ (define opts
(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 ()