PageRenderTime 107ms CodeModel.GetById 105ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion.d/gcl

http://github.com/brinkman83/bashrc
#! | 30 lines | 25 code | 5 blank | 0 comment | 0 complexity | a014331eb007c97b0c8d392740589b77 MD5 | raw file
 1# bash programmable completion for various Common Lisp implementations by
 2# Nikodemus Siivola <nikodemus@random-state.net>
 3
 4have gcl &&
 5_gcl()
 6{
 7    local cur
 8
 9    COMPREPLY=()
10    cur=`_get_cword`
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} &&
22complete -F _gcl $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