30 lines
696 B
Plaintext
Raw Normal View History

# postfix(1) completion -*- shell-script -*-
2009-05-21 01:42:22 +02:00
_postfix()
{
local cur prev words cword
_init_completion || return
2009-10-04 19:42:50 +02:00
case $prev in
-c)
_filedir -d
return 0
;;
-D)
COMPREPLY=( $( compgen -W 'start' -- "$cur" ) )
return 0
;;
esac
if [[ $cur == -* ]]; then
2011-05-15 15:16:24 +03:00
COMPREPLY=( $( compgen -W '$( _parse_usage "$1" )' -- "$cur" ) )
2009-10-04 19:42:50 +02:00
return 0
fi
COMPREPLY=( $( compgen -W 'check start stop abort flush reload status \
set-permissions upgrade-configuration' -- "$cur" ) )
2011-04-04 22:14:39 +03:00
} &&
complete -F _postfix postfix
2009-05-21 01:42:22 +02:00
2009-10-04 19:42:50 +02:00
# ex: ts=4 sw=4 et filetype=sh