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 / clisp < prev    next >
Encoding:
Text File  |  2006-08-28  |  669 b   |  26 lines

  1. # bash brogrammable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3. #
  4. # $Id: clisp,v 1.2 2004/03/30 23:05:45 ianmacd Exp $
  5.  
  6. _clisp()
  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 '-h --help --version --license -B -K \
  16.                      -M -m -L -N -E -q --quiet --silent -w -I -ansi \
  17.                      -traditional -p -C -norc -i -c -l -o -x ' \
  18.                      -- $cur ) )
  19.     else
  20.     _filedir
  21.     fi
  22.  
  23.     return 0
  24. }
  25. complete -F _clisp -o default clisp
  26.