home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / bash-completion / contrib / lisp < prev    next >
Encoding:
Text File  |  2009-01-21  |  631 b   |  26 lines

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3. #
  4. # $Id: lisp,v 1.2 2004/03/30 23:05:45 ianmacd Exp $
  5.  
  6. _lisp()
  7. {
  8.     local cur
  9.  
  10.     COMPREPLY=()
  11.     cur=`_get_cword`
  12.  
  13.     # completing an option (may or may not be separated by a space)
  14.     if [[ "$cur" == -* ]]; then
  15.     COMPREPLY=( $( compgen -W '-core -lib -batch -quit -edit -eval -init \
  16.                      -dynamic-space-size -hinit -noinit -nositeinit -load \
  17.                      -slave ' \
  18.                      -- $cur ) )
  19.     else
  20.     _filedir
  21.     fi
  22.  
  23.     return 0
  24. }
  25. complete -F _lisp -o default lisp
  26.