about summary refs log tree commit diff
path: root/profile/.profile.d/60_lisp.sh
blob: e450d24532bafdea1721bb5333e775b21e1fc52e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

_implementations="
sbcl
ccl
clasp
clisp
ecl
abcl
"

for _implementation in ${_implementations}; do
	# shellcheck disable=SC2139
	if command -v "$_implementation" >/dev/null 2>&1; then
		if command -v rlwrap >/dev/null 2>&1; then
			alias lisp="rlwrap $_implementation"
		else
			alias lisp="$_implementation"
		fi

		break
	fi
done

unset _implementation _implementations

Consider giving Nix/NixOS a try! <3