# postfix(1) completion -*- shell-script -*- proc _postfix { local cur prev words cword _init_completion || return match $prev { with -c _filedir -d return 0 with -D setglobal COMPREPLY = ''( $( compgen -W 'start' -- "$cur" ) ) return 0 } if [[ $cur == -* ]] { setglobal COMPREPLY = ''( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) ) return 0 } setglobal COMPREPLY = ''( $( compgen -W 'check start stop abort flush reload status set-permissions upgrade-configuration' -- "$cur" ) ) } && complete -F _postfix postfix # ex: ts=4 sw=4 et filetype=sh