2011-11-01 22:14:45 +02:00
|
|
|
# postfix(1) completion -*- shell-script -*-
|
2009-05-21 01:42:22 +02:00
|
|
|
|
|
|
|
_postfix()
|
|
|
|
{
|
2011-04-20 23:08:37 +03:00
|
|
|
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
|
|
|
} &&
|
2010-11-01 19:26:53 +02: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
|