PageRenderTime 578ms CodeModel.GetById 91ms app.highlight 0ms RepoModel.GetById 20ms app.codeStats 0ms

/bash_completion_lib/complete/change_pw

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