diff options
| author | Oleg Pykhalov <go.wigust@gmail.com> | 2018-11-22 17:24:04 +0300 |
|---|---|---|
| committer | Oleg Pykhalov <go.wigust@gmail.com> | 2018-12-03 08:04:51 +0300 |
| commit | 37c6f11f8dfa1880db86a3510c9e50990304d76c (patch) | |
| tree | b221445899a9e5b375645751e66fa17b72b2f853 | |
| parent | 6efccabe4e2e3ea1bd14cd0e81bdb83d5f6baaea (diff) | |
repl: Load user's initialization file.
* guix/scripts/repl.scm (guix-repl): Load user's initialization file.
| -rw-r--r-- | guix/scripts/repl.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm index 1a105f51ee5..02169e80042 100644 --- a/guix/scripts/repl.scm +++ b/guix/scripts/repl.scm | |||
| @@ -188,6 +188,11 @@ call THUNK." | |||
| 188 | (save-module-excursion | 188 | (save-module-excursion |
| 189 | (lambda () | 189 | (lambda () |
| 190 | (set-current-module user-module) | 190 | (set-current-module user-module) |
| 191 | (and=> (getenv "HOME") | ||
| 192 | (lambda (home) | ||
| 193 | (let ((guile (string-append home "/.guile"))) | ||
| 194 | (when (file-exists? guile) | ||
| 195 | (load guile))))) | ||
| 191 | ;; Do not exit repl on SIGINT. | 196 | ;; Do not exit repl on SIGINT. |
| 192 | ((@@ (ice-9 top-repl) call-with-sigint) | 197 | ((@@ (ice-9 top-repl) call-with-sigint) |
| 193 | (lambda () | 198 | (lambda () |
