diff options
Diffstat (limited to 'contrib/sbcl')
-rw-r--r-- | contrib/sbcl | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/contrib/sbcl b/contrib/sbcl index 1b14eea3..7a12f89d 100644 --- a/contrib/sbcl +++ b/contrib/sbcl @@ -1,9 +1,7 @@ -# -*- mode: shell-script; sh-basic-offset: 8; indent-tabs-mode: t -*- -# ex: ts=8 sw=8 noet filetype=sh -# # bash programmable completion for various Common Lisp implementations by # Nikodemus Siivola <nikodemus@random-state.net> +have sbcl || have sbcl-mt && _sbcl() { local cur @@ -13,13 +11,21 @@ _sbcl() # completing an option (may or may not be separated by a space) if [[ "$cur" == -* ]]; then - COMPREPLY=( $( compgen -W '--core --noinform --help --version \ - --sysinit --userinit --eval --noprint --disable-debugger \ - --end-runtime-options --end-toplevel-options ' -- $cur ) ) + COMPREPLY=( $( compgen -W '--core --noinform --help --version \ + --sysinit --userinit --eval --noprint --disable-debugger \ + --end-runtime-options --end-toplevel-options ' -- "$cur" ) ) else - _filedir + _filedir fi return 0 -} -complete -F _sbcl $default sbcl sbcl-mt +} && +complete -F _sbcl $filenames sbcl sbcl-mt + +# 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 |