/bash_completion_lib/complete -o default/clisp

http://github.com/brinkman83/bashrc · #! · 30 lines · 21 code · 9 blank · 0 comment · 0 complexity · d0d5d8c9d15b9b241fe16d5ebcd91e43 MD5 · raw file

  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. comp_include _filedir _get_cword
  6. _clisp()
  7. {
  8. local cur
  9. COMPREPLY=()
  10. cur=`_get_cword`
  11. # completing an option (may or may not be separated by a space)
  12. if [[ "$cur" == -* ]]; then
  13. COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
  14. -M -m -L -N -E -q --quiet --silent -w -I -ansi \
  15. -traditional -p -C -norc -i -c -l -o -x ' \
  16. -- $cur ) )
  17. else
  18. _filedir
  19. fi
  20. return 0
  21. } # _clisp()