chiark / gitweb /
dot/lisp-init.lisp: The logical-pathname translations don't work in Clisp.
[profile] / dot / lisp-init.lisp
index de02915fc0ff4a601363c86ec8a6a3cfc030f693..e060815448b1ed177169b88200681cb42be9542c 100644 (file)
@@ -29,6 +29,17 @@ (let ((#1=#:sbcl-src #p"/usr/share/sbcl-source/"))
          `(("SYS:SRC;**;*.*.*" ,(#2# "src/**/*.*"))
            ("SYS:CONTRIB;**;*.*.*" ,(#2# "contrib/**/*.*"))))))
 
+#+sbcl (require :sb-posix)
+#+(and unix (or sbcl cmu))
+(let ((#1=#:home (pathname (concatenate 'string
+                                       (or #+sbcl (sb-posix:getenv "HOME")
+                                           #+clisp (ext:getenv "HOME")
+                                           #+cmu (unix:unix-getenv "HOME")
+                                           "/home/mdw")
+                                       "/"))))
+  (setf (logical-pathname-translations "HOME")
+       `(("HOME:**;*.*.*" ,(merge-pathnames "**/*.*" #1#)))))
+
 ;; Various fixings.
 #+clisp (setf custom:*parse-namestring-ansi* t)