about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-19 08:51:59 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-09-20 17:59:20 +0000
commit7c93ba46d2f1949e9c23bd766491548b81449f6a (patch)
treea2c60dad43b1f0a45e9d1b3ab5f7f1fa7f3f267e
parent2c612c5ba10d7278b76e1d05374cc617ed5ad5fc (diff)
downloadzsh-7c93ba46d2f1949e9c23bd766491548b81449f6a.tar.gz
zsh-7c93ba46d2f1949e9c23bd766491548b81449f6a.tar.xz
zsh-7c93ba46d2f1949e9c23bd766491548b81449f6a.zip
39385: _bts: Complete more argument types for 'cache' and 'show'.
-rw-r--r--ChangeLog3
-rw-r--r--Completion/Debian/Command/_bts11
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index ff313003b..6f5b0bbc8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2016-09-20  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
+	* 39385: Completion/Debian/Command/_bts: Complete more argument
+	types for 'cache' and 'show'.
+
 	* 39383: Src/Zle/compcore.c: compadd: Restrict previous patch
 	to the case where $PREFIX includes characters both from the -P
 	prefix and from the (unprefixed) candidate completion word.
diff --git a/Completion/Debian/Command/_bts b/Completion/Debian/Command/_bts
index 75085a9af..d7aac9e3c 100644
--- a/Completion/Debian/Command/_bts
+++ b/Completion/Debian/Command/_bts
@@ -41,8 +41,9 @@ case "$words[1]" in
   (show|bugs)
     if [[ CURRENT -eq 2 ]]; then
       _alternative \
-	'packages:package:_deb_packages avail' \
-        'emails:package maintainer:compadd $DEBEMAIL'
+        'packages:package:_deb_packages avail' \
+        'emails:package maintainer:compadd $DEBEMAIL' \
+        'bugnum:bug number:_debbugs_bugnumber'
     else
       _wanted sep expl 'separator' compadd -S ' ' , .
     fi
@@ -199,8 +200,10 @@ case "$words[1]" in
   ;;
   (cache)
      _alternative \
-       'package:package:_deb_packages avail' \
-       'email:email address:_email_addresses -c' \
+       'source-packages:source package:_deb_packages -P "src:" source' \
+       'package:binary package:_deb_packages avail' \
+       'email:email address:_email_addresses -c -P "from:"' \
+       'bugnum:bug number:_debbugs_bugnumber' \
        'rc:rc:compadd release-critical'
   ;;
   (cleancache)