diff options
author | Tristan Williams <tgwil@tgwil.net> | 2024-10-21 03:22:16 -0400 |
---|---|---|
committer | Tristan Williams <tgwil@tgwil.net> | 2024-10-21 03:22:16 -0400 |
commit | 4d16bcf21fc84bc9a7be52066c3594630a7c77b2 (patch) | |
tree | aca77cf003fe27b52f498f2ad79ff299f196fc18 | |
parent | Add .nanorc to installer (diff) | |
download | dotfiles.core-4d16bcf21fc84bc9a7be52066c3594630a7c77b2.tar.gz dotfiles.core-4d16bcf21fc84bc9a7be52066c3594630a7c77b2.tar.bz2 dotfiles.core-4d16bcf21fc84bc9a7be52066c3594630a7c77b2.zip |
Use Roswell to manage Lisp instead of manual installation
-rw-r--r-- | home/.sbclrc | 2 | ||||
-rwxr-xr-x | new-user-setup.sh | 14 |
2 files changed, 6 insertions, 10 deletions
diff --git a/home/.sbclrc b/home/.sbclrc index 6dd45fd..2c2bd8a 100644 --- a/home/.sbclrc +++ b/home/.sbclrc | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | ;; Use Quicklisp | 6 | ;; Use Quicklisp |
7 | #-quicklisp | 7 | #-quicklisp |
8 | (let ((quicklisp-init (merge-pathnames "lisp/quicklisp/setup.lisp" | 8 | (let ((quicklisp-init (merge-pathnames ".roswell/lisp/quicklisp/setup.lisp" |
9 | (user-homedir-pathname)))) | 9 | (user-homedir-pathname)))) |
10 | (when (probe-file quicklisp-init) | 10 | (when (probe-file quicklisp-init) |
11 | (load quicklisp-init))) | 11 | (load quicklisp-init))) |
diff --git a/new-user-setup.sh b/new-user-setup.sh index e9b2e59..b925b1b 100755 --- a/new-user-setup.sh +++ b/new-user-setup.sh | |||
@@ -87,16 +87,12 @@ while | |||
87 | x11/arandr \ | 87 | x11/arandr \ |
88 | x11-fonts/nerd-fonts \ | 88 | x11-fonts/nerd-fonts \ |
89 | x11/xorg | 89 | x11/xorg |
90 | # Install Quicklisp | 90 | # Setup Lisp |
91 | if [[ ! -d $HOME/lisp/quicklisp ]]; then | 91 | if command -v ros &> /dev/null; then |
92 | curl -o /tmp/ql.lisp http://beta.quicklisp.org/quicklisp.lisp | 92 | ros &> /dev/null |
93 | sbcl --no-sysinit --no-userinit --load /tmp/ql.lisp \ | 93 | echo -e "${GREEN}INFO : Roswell setup complete.${ENDCOLOR}" |
94 | --eval '(quicklisp-quickstart:install :path "~/lisp/quicklisp")' \ | ||
95 | --quit \ | ||
96 | > /dev/null # minimize output | ||
97 | echo -e "${GREEN}INFO : Installed Quicklisp${ENDCOLOR}" | ||
98 | else | 94 | else |
99 | echo -e "${YELLOW}Skipped: Quicklisp. Already installed${ENDCOLOR}" | 95 | echo -e "${YELLOW}Skipped: Roswell not installed.${ENDCOLOR}" |
100 | fi | 96 | fi |
101 | 97 | ||
102 | echo "INFO : Packages installed and updated." | 98 | echo "INFO : Packages installed and updated." |