mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
repl: Load user's initialization file.
* guix/scripts/repl.scm (guix-repl): Load user's initialization file.
This commit is contained in:
parent
6efccabe4e
commit
37c6f11f8d
1 changed files with 5 additions and 0 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Reference in a new issue