On Tue, Jun 19, 2007 at 10:41:10AM +0100, Joey Hess wrote:
> bts show foo<tab>
> should work the same as
> apt-cache show foo<tab>
> 
> There are some other completions possible in bts, but this is the only
> one I find myself missing.

The quick fix is to make show be the same as bugs, since the man page
claims that they are aliases.  This needs to be fixed better though.

Index: Completion/Debian/Command/_bts
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Debian/Command/_bts,v
retrieving revision 1.7
diff -u -r1.7 _bts
--- Completion/Debian/Command/_bts      18 May 2006 13:15:12 -0000      1.7
+++ Completion/Debian/Command/_bts      19 Jun 2007 12:41:04 -0000
@@ -30,14 +30,14 @@
 fi
 
 case "$words[1]" in
-  (show|close|unmerge|notforwarded|noowner|reportspam)
+  (close|unmerge|notforwarded|noowner|reportspam)
     if [[ CURRENT -eq 2 ]]; then
       _message -e bugnum 'bug number'
     else
       _wanted sep expl 'separator' compadd -S ' ' , .
     fi
   ;;
-  bugs)
+  (show|bugs)
     if [[ CURRENT -eq 2 ]]; then
       _wanted package expl 'package' _deb_packages avail
       _wanted maintainer expl 'package maintainer' compadd $DEBEMAIL


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to