From 23c407dc322b6857e17b12ac185a531c77eb2c20 Mon Sep 17 00:00:00 2001 From: Tristan Williams Date: Sun, 13 Oct 2024 14:09:26 -0400 Subject: Add SBCL configuration --- home/.sbclrc | 12 ++++++++++++ new-user-setup.sh | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 home/.sbclrc diff --git a/home/.sbclrc b/home/.sbclrc new file mode 100644 index 0000000..6dd45fd --- /dev/null +++ b/home/.sbclrc @@ -0,0 +1,12 @@ +;;;; SBCL Configuration +;;; FILE : dotfiles.core/home/.sbclrc +;;; TARGET: ~/.sbclrc +;;; AUTHOR: tgwil + +;; Use Quicklisp +#-quicklisp +(let ((quicklisp-init (merge-pathnames "lisp/quicklisp/setup.lisp" + (user-homedir-pathname)))) + (when (probe-file quicklisp-init) + (load quicklisp-init))) + diff --git a/new-user-setup.sh b/new-user-setup.sh index 98e480b..7ce8b0f 100755 --- a/new-user-setup.sh +++ b/new-user-setup.sh @@ -158,6 +158,20 @@ place_file $HOME/dotfiles.core/home/.gnupg/gpg-agent.conf $HOME/.gnupg/gpg-agent place_file $HOME/dotfiles.core/home/.gitconfig $HOME/.gitconfig echo -e "${WARN}WARNING: ~/.gitconfig.local should be placed manually${ENDCOLOR}" +# Common Lisp SBCL Configuration +place_file $HOME/dotfiles.core/home/.sbclrc $HOME/.sbclrc +place_directory $HOME/lisp +# Install Quicklisp +if [[ ! -d $HOME/lisp/quicklisp ]]; then + curl -o /tmp/ql.lisp http://beta.quicklisp.org/quicklisp.lisp + sbcl --no-sysinit --no-userinit --load /tmp/ql.lisp \ + --eval '(quicklisp-quickstart:install :path "~/lisp/quicklisp")' \ + --quit \ + > /dev/null # minimize output + echo -e "${GREEN}INFO : Installed Quicklisp${ENDCOLOR}" +else + echo -e "${YELLOW}Skipped: Quicklisp. Already installed${ENDCOLOR}" +fi ######################################################################## ## END OF SCRIPT -- cgit v1.2.3