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 / gcl < prev    next >
Encoding:
Text File  |  2010-11-16  |  693 b   |  31 lines

  1. # bash programmable completion for various Common Lisp implementations by
  2. # Nikodemus Siivola <nikodemus@random-state.net>
  3.  
  4. have gcl &&
  5. _gcl()
  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 '-eval -load -f -batch -dir -libdir \
  15.             -compile -o-file -c-file -h-file -data-file -system-p '-- "$cur" ) )
  16.     else
  17.         _filedir
  18.     fi
  19.  
  20.     return 0
  21. } &&
  22. complete -F _gcl -o default gcl
  23.  
  24. # Local variables:
  25. # mode: shell-script
  26. # sh-basic-offset: 4
  27. # sh-indent-comment: t
  28. # indent-tabs-mode: nil
  29. # End:
  30. # ex: ts=4 sw=4 et filetype=sh
  31.