mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-05 11:01:13 +02:00
* 20634: Completion/Unix/Command/_postfix: completion for postsuper.
This commit is contained in:
parent
11841cdc72
commit
f46e37a3dc
2 changed files with 25 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2004-12-24 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20634: Completion/Unix/Command/_postfix: completion
|
||||
for postsuper.
|
||||
|
||||
2004-12-15 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 20626: Completion/Unix/Command/_baz: completion
|
||||
|
|
20
Completion/Unix/Command/_postfix
Normal file
20
Completion/Unix/Command/_postfix
Normal file
|
@ -0,0 +1,20 @@
|
|||
#compdef postsuper
|
||||
|
||||
_postfix_queue_id() {
|
||||
compadd ${${(M)${(f)"$(postqueue -p)"}:#(#s)([0-9A-F]##)*}/(#s)(#b)([0-9A-F]##)*/$match[1]}
|
||||
}
|
||||
|
||||
case $service in
|
||||
(postsuper)
|
||||
_arguments -C \
|
||||
'-p[purge old tempfiles]' \
|
||||
'-s[structure check and repair]' \
|
||||
'-v[verbose]' \
|
||||
'-c[configdir]:config dir:_files -/' \
|
||||
'-d[delete]:queue id:_postfix_queue_id' \
|
||||
'-h[hold]:queue id:_postfix_queue_id' \
|
||||
'-H[release]:queue id:_postfix_queue_id' \
|
||||
'-r[requeue]:queue id:_postfix_queue_id' \
|
||||
'1:queue:(hold incoming active deferred)'
|
||||
;;
|
||||
esac
|
Loading…
Reference in a new issue