# mailman config_list completion -*- shell-script -*- proc _config_list { var cur = '', prev = '', words = '', cword = '', split = '' _init_completion -s || return match $prev { with -i|-o|--inputfile|--outputfile _filedir return 0 } $split && return 0 if [[ "$cur" == -* ]] { setglobal COMPREPLY = '( '$( compgen -W '--inputfile --outputfile --checkonly --verbose --help' -- "$cur" ) ) } else { _xfunc list_lists _mailman_lists } } && complete -F _config_list config_list # ex: ts=4 sw=4 et filetype=sh