PageRenderTime 64ms CodeModel.GetById 62ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/bash_completion_lib/complete/clone_member

http://github.com/brinkman83/bashrc
#! | 25 lines | 19 code | 6 blank | 0 comment | 0 complexity | 40bb1e0dddf593efda9c30b8fc66fac5 MD5 | raw file
 1# Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
 2
 3
 4comp_include _get_cword _mailman_lists
 5
 6_clone_member()
 7{
 8	local cur prev
 9
10	COMPREPLY=()
11	cur=`_get_cword`
12	prev=${COMP_WORDS[COMP_CWORD-1]}
13
14	case "$prev" in
15		-@(l|-listname=))
16			_mailman_lists
17			return 0
18			;;
19	esac
20
21	if [[ "$cur" == -* ]]; then
22		COMPREPLY=( $( compgen -W '-l --listname= --remove -r \
23		--admin -a --quiet -q --nomodify -n --help -h' -- $cur ) )
24	fi
25} # _clone_member()