summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2021-12-14 01:05:57 +0000
committerYann Herklotz <git@yannherklotz.com>2021-12-14 01:05:57 +0000
commitb455c6e8a96332daff80b91c98062810123f4ed7 (patch)
treea05ae77907babab17f9abe351a6f2d421a69ab49
parentc05f929f4a3c882215f073fcec17f7f67f74b118 (diff)
downloadaoc21-b455c6e8a96332daff80b91c98062810123f4ed7.tar.gz
aoc21-b455c6e8a96332daff80b91c98062810123f4ed7.zip
Add instructions and add quicklisp snippet
-rw-r--r--README.md6
-rw-r--r--top.lisp7
2 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index d2cab58..72c7994 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,9 @@
# Advent of Code 2021
These are the solutions to the [advent of code](https://adventofcode.com/2021) from 2021.
+
+To run all the days:
+
+``` bash
+sbcl --quit --load top.lisp --eval "(run-all)"
+```
diff --git a/top.lisp b/top.lisp
index 065291c..4a69a6a 100644
--- a/top.lisp
+++ b/top.lisp
@@ -1,3 +1,10 @@
+;;; 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)))
+
(ql:quickload 'uiop :silent t)
(ql:quickload 'cl-ppcre :silent t)
(ql:quickload 'clunit :silent t)