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
1 changed files with 5 additions and 0 deletions

View File

@ -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 ()