在ghci中,我可以使用“cd”来更改其当前目录,如下所示:
$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 :(得分: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
功能效果很好!