home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2006 November (DVD) / PCWELT_11_2006.ISO / casper / filesystem.squashfs / usr / share / doc / bash / completion-contrib / sbcl < prev    next >
Encoding:
Text File  |  2006-08-28  |  664 b   |  25 lines

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3. #
  4. # $Id: sbcl,v 1.2 2004/03/30 23:05:45 ianmacd Exp $
  5.  
  6. _sbcl()
  7. {
  8.     local cur
  9.  
  10.     COMPREPLY=()
  11.     cur=${COMP_WORDS[COMP_CWORD]}
  12.  
  13.     # completing an option (may or may not be separated by a space)
  14.     if [[ "$cur" == -* ]]; then
  15.     COMPREPLY=( $( compgen -W '--core --noinform --help --version \
  16.                      --sysinit --userinit --eval --noprint --disable-debugger \
  17.                      --end-runtime-options --end-toplevel-options ' -- $cur ) )
  18.     else
  19.     _filedir
  20.     fi
  21.  
  22.     return 0
  23. }
  24. complete -F _sbcl -o default sbcl sbcl-mt
  25.