1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# mailman check_perms completion -*- shell-script -*- _check_perms() { local cur prev words cword _init_completion || return if [[ "$cur" == -* ]]; then COMPREPLY=( $(compgen -W '-f -v -h' -- "$cur") ) fi } && complete -F _check_perms check_perms # ex: filetype=sh