PageRenderTime 119ms CodeModel.GetById 117ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/list_admins

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