home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / bash_completion.d / sbcl < prev    next >
Encoding:
Text File  |  2010-11-16  |  770 b   |  32 lines

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3.  
  4. have sbcl || have sbcl-mt &&
  5. _sbcl()
  6. {
  7.     local cur
  8.  
  9.     COMPREPLY=()
  10.     _get_comp_words_by_ref cur
  11.  
  12.     # completing an option (may or may not be separated by a space)
  13.     if [[ "$cur" == -* ]]; then
  14.     COMPREPLY=( $( compgen -W '--core --noinform --help --version \
  15.         --sysinit --userinit --eval --noprint --disable-debugger \
  16.         --end-runtime-options --end-toplevel-options ' -- "$cur" ) )
  17.     else
  18.     _filedir
  19.     fi
  20.  
  21.     return 0
  22. } &&
  23. complete -F _sbcl -o filenames sbcl sbcl-mt
  24.  
  25. # Local variables:
  26. # mode: shell-script
  27. # sh-basic-offset: 4
  28. # sh-indent-comment: t
  29. # indent-tabs-mode: nil
  30. # End:
  31. # ex: ts=4 sw=4 et filetype=sh
  32.