zsh-workers
 help / color / mirror / code / Atom feed
From: Clint Adams <schizo@debian.org>
To: Joey Hess <joeyh@debian.org>, 429640@bugs.debian.org
Cc: zsh-workers@sunsite.dk
Subject: Re: Bug#429640: missing bts show completion
Date: Tue, 19 Jun 2007 08:43:24 -0400	[thread overview]
Message-ID: <20070619124324.GA20320@scowler.net> (raw)
In-Reply-To: <20070619094110.GA11847@kitenet.net>

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


           reply	other threads:[~2007-06-19 12:43 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20070619094110.GA11847@kitenet.net>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070619124324.GA20320@scowler.net \
    --to=schizo@debian.org \
    --cc=429640@bugs.debian.org \
    --cc=joeyh@debian.org \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).