/bash_completion_lib/complete -o default/sbcl
http://github.com/brinkman83/bashrc · #! · 25 lines · 18 code · 7 blank · 0 comment · 0 complexity · 73ca7bcb5116e3b46c8449fc47f1cff6 MD5 · raw file
- # bash programmable completion for various Common Lisp implementations by
- # Nikodemus Siivola <nikodemus@random-state.net>
- comp_include _filedir _get_cword
- _sbcl()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- # 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 ) )
- else
- _filedir
- fi
- return 0
- } # _sbcl()