PageRenderTime 3ms CodeModel.GetById 1ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/list_owners

http://github.com/brinkman83/bashrc
#! | 20 lines | 14 code | 6 blank | 0 comment | 0 complexity | 3e31df234e976d05e86f553bc32123eb 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_owners()
 8{
 9	local cur
10
11	COMPREPLY=()
12	cur=`_get_cword`
13
14	if [[ "$cur" == -* ]]; then
15		COMPREPLY=( $( compgen -W '-w --with-listnames \
16			-m --moderators -h --help' -- $cur ) )
17	else
18		_mailman_lists
19	fi
20} # _list_owners()