diff options
author | Clint Adams <clint@users.sourceforge.net> | 2005-05-05 22:30:34 +0000 |
---|---|---|
committer | Clint Adams <clint@users.sourceforge.net> | 2005-05-05 22:30:34 +0000 |
commit | 3f8eca3e2dea9c8559e7ea326d46c6c996fdc102 (patch) | |
tree | 86722f1ca9f8dc75f83176e3c5866cbf98e555ab /Completion/Debian | |
parent | 5ade42c05eaef75d6df17780f6d213192cdcd8df (diff) | |
download | zsh-3f8eca3e2dea9c8559e7ea326d46c6c996fdc102.tar.gz zsh-3f8eca3e2dea9c8559e7ea326d46c6c996fdc102.tar.xz zsh-3f8eca3e2dea9c8559e7ea326d46c6c996fdc102.zip |
* Jesse Weinstein: 21230 (reformatted as 21231):
Completion/Debian/Command/_dpkg: complete -W/--show for dpkg-deb.
Diffstat (limited to 'Completion/Debian')
-rw-r--r-- | Completion/Debian/Command/_dpkg | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg index 962adf825..3d602bff8 100644 --- a/Completion/Debian/Command/_dpkg +++ b/Completion/Debian/Command/_dpkg @@ -2,9 +2,14 @@ local _dpkg_deb_actions _dpkg_common_actions _dpkg_actions _dpkg_options local _dpkg_options_recursive _dpkg_actions_install _dpkg_actions_record_avail +local _dpkg_deb_only_actions local curcontext="$curcontext" context state line expl ret typeset -A opt_args +_dpkg_deb_only_actions=( + '(--show -W)'{--show,-W}'[show package info]:Debian package:_files -g \*.u\#deb' +) + _dpkg_deb_actions=( '(--build -b)'{--build,-b}'[build archive]:directory:_files -/' '(--contents -c)'{--contents,-c}'[list contents]:Debian package:_files -g "*.u#deb(-.)"' @@ -84,6 +89,7 @@ case "$service" in dpkg-deb) _arguments "$_dpkg_deb_actions[@]" \ + "$_dpkg_deb_only_actions[@]" \ "$_dpkg_common_actions[@]" && return 0 ;; dpkg-reconfigure) |