summaryrefslogtreecommitdiff
path: root/guile-readline
diff options
context:
space:
mode:
Diffstat (limited to 'guile-readline')
-rw-r--r--guile-readline/ice-9/readline.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/guile-readline/ice-9/readline.scm b/guile-readline/ice-9/readline.scm
index cfaaef362..2142fbf14 100644
--- a/guile-readline/ice-9/readline.scm
+++ b/guile-readline/ice-9/readline.scm
@@ -118,7 +118,8 @@
(define-once the-readline-port #f)
(define-once history-variable "GUILE_HISTORY")
-(define-once history-file (string-append (getenv "HOME") "/.guile_history"))
+(define-once history-file
+ (string-append (or (getenv "HOME") ".") "/.guile_history"))
(define-public readline-port
(let ((do (lambda (r/w)