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

/bash_completion_lib/complete/snownews

http://github.com/brinkman83/bashrc
#! | 19 lines | 13 code | 6 blank | 0 comment | 0 complexity | 1b06d22e7df77bb99c1046787e491f86 MD5 | raw file
 1# snownews completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
 2
 3
 4comp_include _get_cword
 5
 6
 7_snownews()
 8{
 9	local cur
10
11	COMPREPLY=()
12	cur=`_get_cword`
13
14	if [[ "$cur" == -* ]]; then
15		# return list of available options
16		COMPREPLY=( $( compgen -W '--update --help --version \
17				  --disable-versioncheck -u -h -V' -- $cur))
18	fi
19} # _snownews()