/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
- # bash brogrammable completion for various Common Lisp implementations by
- # Nikodemus Siivola <nikodemus@random-state.net>
- #
- # $Id: clisp,v 1.2 2004/03/30 23:05:45 ianmacd Exp $
- comp_include _filedir _get_cword
- _clisp()
- {
- local cur
- COMPREPLY=()
- cur=`_get_cword`
- # completing an option (may or may not be separated by a space)
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '-h --help --version --license -B -K \
- -M -m -L -N -E -q --quiet --silent -w -I -ansi \
- -traditional -p -C -norc -i -c -l -o -x ' \
- -- $cur ) )
- else
- _filedir
- fi
- return 0
- } # _clisp()