PageRenderTime 80ms CodeModel.GetById 78ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete -o default/sbcl

http://github.com/brinkman83/bashrc
#! | 25 lines | 18 code | 7 blank | 0 comment | 0 complexity | 73ca7bcb5116e3b46c8449fc47f1cff6 MD5 | raw file
 1# bash programmable completion for various Common Lisp implementations by
 2# Nikodemus Siivola <nikodemus@random-state.net>
 3
 4
 5comp_include _filedir _get_cword
 6
 7
 8_sbcl()
 9{
10    local cur
11
12    COMPREPLY=()
13    cur=`_get_cword`
14
15    # completing an option (may or may not be separated by a space)
16    if [[ "$cur" == -* ]]; then
17	COMPREPLY=( $( compgen -W '--core --noinform --help --version \
18                     --sysinit --userinit --eval --noprint --disable-debugger \
19                     --end-runtime-options --end-toplevel-options ' -- $cur ) )
20    else
21	_filedir
22    fi
23
24    return 0
25} # _sbcl()