about summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2004-12-24 19:50:15 +0000
committerClint Adams <clint@users.sourceforge.net>2004-12-24 19:50:15 +0000
commitf46e37a3dc73ea3be7d0a087cf19aa7abd05374a (patch)
tree363b74fc02c177b3e5d2cbfb41cfc8818c0baac1
parent11841cdc72d9226994742770141ee4a73335916f (diff)
downloadzsh-f46e37a3dc73ea3be7d0a087cf19aa7abd05374a.tar.gz
zsh-f46e37a3dc73ea3be7d0a087cf19aa7abd05374a.tar.xz
zsh-f46e37a3dc73ea3be7d0a087cf19aa7abd05374a.zip
* 20634: Completion/Unix/Command/_postfix: completion for postsuper.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_postfix20
2 files changed, 25 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 484f27572..d2c779e11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/Completion/Unix/Command/_postfix b/Completion/Unix/Command/_postfix
new file mode 100644
index 000000000..0ced6c24a
--- /dev/null
+++ b/Completion/Unix/Command/_postfix
@@ -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