Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add missing commands to Debian apt completion
- X-seq: zsh-workers 40017
- From: Laurent Arnoud <laurent@xxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH] Add missing commands to Debian apt completion
- Date: Fri, 25 Nov 2016 17:19:05 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=spkdev.net; s=default; t=1480090747; bh=ofWIc1AwrFu438oNmCdF8qWQ0UN+aFEGaYux77Vd3+c=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=fXIqAEBd81gVI66Cb8kuHXT1y5nZg8UXv6x4CxQ18V3+Msv5Jb7IMttjYWNT2hpqs 2mgKnMrP2+Pc0P4wob3iREyfW5p/r016Hkn3FshzaNGnqbhwHsp4UbS9ITiZyKSdea 7wO48FOVT9BwXz9WZScuAj2jVVU5F9VTHDbTWDuE=
- In-reply-to: <20161125093551.GA23516@fujitsu.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20161122183137.uiqjriicn5g4fjwd@spk-laptop> <20161125093551.GA23516@fujitsu.shahaf.local2>
Hi Daniel,
On Fri, Nov 25, 2016 at 09:35:51AM +0000, Daniel Shahaf wrote:
> Laurent Arnoud wrote on Tue, Nov 22, 2016 at 19:31:37 +0100:
> > +++ b/Completion/Debian/Command/_apt
> > @@ -402,17 +402,29 @@ _apt-cmd () {
> > /$'show\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \
> > + /$'showsrc\0'/ /$'[^\0]#\0'/ ':packages::_deb_packages "$expl_packages[@]" avail' \# \| \
>
> I had to move the 'showsrc' line to above the 'show' line for «apt
> showsrc <TAB>» to work. Is this expected, or a bug in _apt_arguments
> or _regex_arguments?
Yes you are right, I'm not sure about the bug but it is done like that in
`_apt-cache` function. I will just do as you did since I'm not an expert with
this.
Cheers,
--
Laurent
Messages sorted by:
Reverse Date,
Date,
Thread,
Author