开发者

How can i change clisp's current directory once started?

In ghci, i can use "cd" to change its current directory as below:

$cat ~/.ghci
:def hoogle \str -> return $ 开发者_如何学Go":! 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 ... ?

Sincerely!


It is VERY easy :

>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")

The cd function works great !

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜