Skip to content

Commit

Permalink
fix: global init
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 committed Nov 17, 2024
1 parent b1719be commit 1d2d900
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/utils.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,14 @@ arguments in the command list."

(defun quicklisp-lisp (cmd)
"Return Quicklisp's file location."
(concatenate 'string (dot cmd) "quicklisp.lisp"))
(if (global-p cmd)
(concatenate 'string (el-lib:el-2str (user-homedir-pathname))
"quicklisp/")
(concatenate 'string (dot cmd) "quicklisp.lisp")))

(defun quicklisp-installed-p (cmd)
"Return non-nil if Quicklisp is already installed."
(uiop:file-exists-p (quicklisp-lisp cmd)))
(probe-file (quicklisp-lisp cmd)))

(defun quicklisp-download (cmd)
"Download quicklisp."
Expand Down

0 comments on commit 1d2d900

Please sign in to comment.