PageRenderTime 118ms CodeModel.GetById 115ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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