summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@debian.org>2016-05-12 21:08:42 -0400
committerClint Adams <clint@debian.org>2016-05-12 21:08:42 -0400
commit469a8d8aa35bb497b564f0303673f81663166986 (patch)
tree8e422bf789bc3bd81a012b02fe30bfa7c3e92c77
parentc712e7511a6b450e6833aead65ef8b8c0bc70ff1 (diff)
downloadzsh-469a8d8aa35bb497b564f0303673f81663166986.tar.gz
zsh-469a8d8aa35bb497b564f0303673f81663166986.tar.xz
zsh-469a8d8aa35bb497b564f0303673f81663166986.zip
38482: complete available packages for apt list.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Debian/Command/_apt2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 048b355b8..6e1f6d1a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-12  Clint Adams  <clint@zsh.org>
+
+	* 38482: Completion/Debian/Command/_apt: complete available packages
+	for apt list.
+
 2016-05-10  Barton E. Schaefer  <schaefer@zsh.org>
 
 	* 38468: Src/lex.c: wb,we values in gotword() needed assignment in
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 8e74e661f..a46c3264a 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -399,7 +399,7 @@ _apt-cmd () {
     -o,--option:arbitem \
     -t,--target-release:release \
     -- \
-    /$'list\0'/ \| \
+    /$'list\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
     /$'search\0'/ /$'[^\0]#\0'/ ':strings:pattern:' \| \
     /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
     /$'update\0'/ \| \