summary refs log tree commit diff
path: root/Completion/Debian/Command/_dpkg
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-01-09 06:23:51 +0000
committerClint Adams <clint@users.sourceforge.net>2005-01-09 06:23:51 +0000
commit52a5481b1acdf7695bbbc4cc6cd20e146ab9c5be (patch)
tree629b06e6e06e023ca0004e709ac6c7f8509649eb /Completion/Debian/Command/_dpkg
parent0470a378b6a36453443015a09a2ddb88d7113c3f (diff)
downloadzsh-52a5481b1acdf7695bbbc4cc6cd20e146ab9c5be.tar.gz
zsh-52a5481b1acdf7695bbbc4cc6cd20e146ab9c5be.tar.xz
zsh-52a5481b1acdf7695bbbc4cc6cd20e146ab9c5be.zip
* 20654: completion for wajig, and dpkg/deb_packages improvements from Karl Chen.
Diffstat (limited to 'Completion/Debian/Command/_dpkg')
-rw-r--r--Completion/Debian/Command/_dpkg7
1 files changed, 6 insertions, 1 deletions
diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg
index f098e8a88..7ad3da4ba 100644
--- a/Completion/Debian/Command/_dpkg
+++ b/Completion/Debian/Command/_dpkg
@@ -113,11 +113,16 @@ case "$state" in
       - nonrecur \
 	'*:Debian package:_path_files -g "*.deb(-.)"'
   ;;
-  remove|purge|status|listfiles)
+  remove|status|listfiles)
     _call_function ret _dpkg_$state && return ret
     _arguments -C -A "-*" -s "$_dpkg_options[@]" \
        '*:package:_deb_packages installed'
   ;;
+  purge)
+    _call_function ret _dpkg_$state && return ret
+    _arguments -C -A "-*" -s "$_dpkg_options[@]" \
+       '*:package:_deb_packages xinstalled'
+  ;;
   list)
     _call_function ret _dpkg_$state && return ret
     _arguments -C -A "-*" -s "$_dpkg_options[@]" \