PageRenderTime 101ms CodeModel.GetById 98ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/civserver

http://github.com/brinkman83/bashrc
#! | 28 lines | 22 code | 6 blank | 0 comment | 0 complexity | 9613d96ce350ff6555b6e8beb8a1ebac MD5 | raw file
 1# civserver completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
 2#
 3comp_include _filedir _get_cword
 4
 5_civserver()
 6{
 7	local cur
 8
 9	COMPREPLY=()
10	cur=`_get_cword`
11	prev=${COMP_WORDS[COMP_CWORD-1]}
12
13	case "$prev" in
14		-@(f|g|l|r|-file|-log|-gamelog|-read))
15			_filedir
16			return 0
17			;;
18	esac
19
20	if [[ "$cur" == -* ]]; then
21		COMPREPLY=( $( compgen -W '-d -f -g -h -i -l -m -M -p -q -r -v\
22			--debug --file --gamelog --help --info --log --meta \
23			--Metaserver --port --quitidle --read --version' \
24			-- $cur ) )
25	fi
26} # _civserver()
27
28