2011-09-22 64 views
0

在ghci中,我可以使用 “cd” 命令,如下改变当前目录:如何更改clisp的当前目录一旦启动?

$cat ~/.ghci 
:def hoogle \str -> return $ ":! hoogle --count=15 \"" ++ str ++ "\"" 
:cd /media/E/work 
:load Money 


Then once started, ghci will change its current directory. Can i do the same thing in clisp ? Maybe need to modify ~/.clisprc ... ? 

祝商祺!

回答

0

这是很容易:

>cat ~/.clisprc.lisp 
;;; The following lines added by ql:add-to-init-file: 
#-quicklisp 
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp" (user-homedir-pathname)))) 
    (when (probe-file quicklisp-init) 
    (load quicklisp-init))) 

;(pushnew "/media/E/lisp/" asdf:*central-registry* :test #'equal) 
(cd "/media/E/www/qachina/db/doc/money") 
(load "money") 

cd功能的伟大工程!

相关问题