PageRenderTime 19ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/withlist

http://github.com/brinkman83/bashrc
#! | 20 lines | 15 code | 5 blank | 0 comment | 0 complexity | dfb0e758cf9d6536cb560eadac03678f MD5 | raw file
 1# Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
 2#
 3
 4comp_include _get_cword _mailman_lists
 5
 6
 7_withlist()
 8{
 9	local cur
10
11	COMPREPLY=()
12	cur=`_get_cword`
13
14	if [[ "$cur" == -* ]]; then
15		COMPREPLY=( $( compgen -W '-l --lock -i --interactive \
16			-r --run -a --all -q --quiet -h --help' -- $cur ) )
17	else
18		_mailman_lists
19	fi
20} # _withlist()