2011-09-22 63 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功能的偉大工程!

相關問題