summary refs log tree commit diff
path: root/Completion/Debian/Command/_dpkg
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2002-07-01 16:04:03 +0000
committerClint Adams <clint@users.sourceforge.net>2002-07-01 16:04:03 +0000
commit964f819070c1d506bfcd45e25704ae23c8f09ed4 (patch)
tree026306fde495dba461fc44f41fdcbbfe0cdea4d2 /Completion/Debian/Command/_dpkg
parenta18f0202824ccd29a931edd2abc6d2caee23296c (diff)
downloadzsh-964f819070c1d506bfcd45e25704ae23c8f09ed4.tar.gz
zsh-964f819070c1d506bfcd45e25704ae23c8f09ed4.tar.xz
zsh-964f819070c1d506bfcd45e25704ae23c8f09ed4.zip
17391: complete files after dpkg -S.
Diffstat (limited to 'Completion/Debian/Command/_dpkg')
-rw-r--r--Completion/Debian/Command/_dpkg24
1 files changed, 14 insertions, 10 deletions
diff --git a/Completion/Debian/Command/_dpkg b/Completion/Debian/Command/_dpkg
index 79851134b..d8b5d9327 100644
--- a/Completion/Debian/Command/_dpkg
+++ b/Completion/Debian/Command/_dpkg
@@ -91,10 +91,10 @@ esac
 
 case "$state" in
   install|record_avail)
-        _call_function ret _dpkg_$state && return ret
+	_call_function ret _dpkg_$state && return ret
 # not needed anymore?
 #            "${(@e):-\$_dpkg_actions_${state}}" \
-        _arguments -C -A '-*' -s \
+	_arguments -C -A '-*' -s \
              "$_dpkg_options[@]" \
              \!${^_dpkg_actions%%:*} \
 	   - recur \
@@ -104,28 +104,32 @@ case "$state" in
 	     '*:Debian package:_path_files -g \*.deb'
   ;;
   remove|purge|status|listfiles)
-        _call_function ret _dpkg_$state && return ret
-  	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
 	   '*:package:_deb_packages installed'
   ;;
   list)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s "$_dpkg_options[@]" \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s "$_dpkg_options[@]" \
            '*:packages:_deb_packages avail'
   ;;
   compare_versions)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s \
 	'1:version A:' \
 	'2:operator:(lt le eq ne ge gt lt-nl le-nl ge-nl gt-nl)' \
 	'3:version B:'
   ;;
   configure)
-        _call_function ret _dpkg_$state && return ret
-        _arguments -C -A "-*" -s '--configure' \
+	_call_function ret _dpkg_$state && return ret
+	_arguments -C -A "-*" -s '--configure' \
 	   "$_dpkg_options[@]" \
 	  '(* --pending)-a[pending packages]' \
 	  '(* -a)--pending' \
 	  '*:package:_deb_packages installed'
   ;;
+  search)
+	_call_function ret _dpkg_$state && return ret
+	_files
+  ;;
 esac