/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

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3. comp_include _filedir _get_cword
  4. _sbcl()
  5. {
  6. local cur
  7. COMPREPLY=()
  8. cur=`_get_cword`
  9. # completing an option (may or may not be separated by a space)
  10. if [[ "$cur" == -* ]]; then
  11. COMPREPLY=( $( compgen -W '--core --noinform --help --version \
  12. --sysinit --userinit --eval --noprint --disable-debugger \
  13. --end-runtime-options --end-toplevel-options ' -- $cur ) )
  14. else
  15. _filedir
  16. fi
  17. return 0
  18. } # _sbcl()