zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#429640: missing bts show completion
       [not found] <20070619094110.GA11847@kitenet.net>
@ 2007-06-19 12:43 ` Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-06-19 12:43 UTC (permalink / raw)
  To: Joey Hess, 429640; +Cc: zsh-workers

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-19 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20070619094110.GA11847@kitenet.net>
2007-06-19 12:43 ` Bug#429640: missing bts show completion Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).