/bash_completion_lib/complete/remove_members
http://github.com/brinkman83/bashrc · #! · 31 lines · 22 code · 9 blank · 0 comment · 0 complexity · 3c7a2ff3876de6fa301e1789810df110 MD5 · raw file
- # Mailman completion by Guillaume Rousse <rousse@ccr.jussieu.fr>
- comp_include _filedir _get_cword _mailman_lists
- _remove_members()
- {
- local cur prev
- COMPREPLY=()
- cur=`_get_cword`
- prev=${COMP_WORDS[COMP_CWORD-1]}
- case "$prev" in
- -@(f|-file=))
- _filedir
- return 0
- ;;
- esac
- if [[ "$cur" == -* ]]; then
- COMPREPLY=( $( compgen -W '--file= -f --all -a \
- --fromall --nouserack -n --noadminack -N \
- --help -h' -- $cur ) )
- else
- _mailman_lists
- fi
- } # _remove_members()