0

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 ... ?

心から!

4

1 に答える 1

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機能は素晴らしいです!

于 2011-09-29T01:29:30.700 に答える