summaryrefslogtreecommitdiff
path: root/contrib/clisp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/clisp')
-rw-r--r--contrib/clisp23
1 files changed, 14 insertions, 9 deletions
diff --git a/contrib/clisp b/contrib/clisp
index 6c6d9b63..322faabb 100644
--- a/contrib/clisp
+++ b/contrib/clisp
@@ -1,9 +1,7 @@
-# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*-
-# ex: ts=8 sw=8 noet filetype=sh
-#
# bash brogrammable completion for various Common Lisp implementations by
# Nikodemus Siivola <nikodemus@random-state.net>
+have clisp &&
_clisp()
{
local cur
@@ -13,14 +11,21 @@ _clisp()
# completing an option (may or may not be separated by a space)
if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
- -M -m -L -N -E -q --quiet --silent -w -I -ansi \
- -traditional -p -C -norc -i -c -l -o -x ' \
- -- $cur ) )
+ COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
+ -M -m -L -N -E -q --quiet --silent -w -I -ansi \
+ -traditional -p -C -norc -i -c -l -o -x ' -- "$cur" ) )
else
- _filedir
+ _filedir
fi
return 0
-}
+} &&
complete -F _clisp $default clisp
+
+# Local variables:
+# mode: shell-script
+# sh-basic-offset: 4
+# sh-indent-comment: t
+# indent-tabs-mode: nil
+# End:
+# ex: ts=4 sw=4 et filetype=sh