From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Chris Lamb <lamby@debian.org>
Cc: zsh-workers@zsh.org, 891140@bugs.debian.org
Subject: Re: Please make "apt install <tab>" completion work on "local" .deb files
Date: Thu, 05 Apr 2018 11:47:49 +0200 [thread overview]
Message-ID: <25819.1522921669@thecus> (raw)
In-Reply-To: <1522742323.1707335.1324560336.6FED3D02@webmail.messagingengine.com>
Chris Lamb wrote:
>
> Thanks for applying this. I was wonder if you could also include:
>
> *.changes
> *.dsc
>
> ie. as well as *.deb. All behaviours of path-based .debs can be
> inherited. Thanks in advance :)
Do you mean like the following patch - considering all .changes and .dsc
files alongside .deb? Or in some other context?
Oliver
diff --git a/Completion/Debian/Command/_apt b/Completion/Debian/Command/_apt
index 645b02279..dd837379c 100644
--- a/Completion/Debian/Command/_apt
+++ b/Completion/Debian/Command/_apt
@@ -411,7 +411,7 @@ _apt-cmd () {
/$'(install|download|source|build-dep)\0'/ -'subcmd=${match%?}' \
/$'[^\0]#\0'/ ':packages::_deb_packages -qr "\n\t\- /=" "$expl_packages[@]" avail' \# \
\( \
- // '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files:package file:_files -g "*.deb(-.)"' \| \
+ // '%(.|)/%' -'[[ $subcmd = install ]]' /'[]'/ ':files:package file:_files -g "*.(changes|deb|dsc)(-.)"' \| \
/$'[^\0/=]#\/'/ /'[]'/ ':apt-releases:release name:_apt_releases' \| \
/$'[^\0/=]#='/ /'[]'/ ':apt-package-versions:package version:_apt_versions_of_binary_package' \| \
\) \
next prev parent reply other threads:[~2018-04-05 9:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 16:54 Chris Lamb
2018-03-22 0:09 ` Oliver Kiddle
2018-03-22 0:16 ` Chris Lamb
2018-03-22 9:36 ` Oliver Kiddle
2018-03-22 15:34 ` Chris Lamb
2018-04-03 7:58 ` Chris Lamb
2018-04-05 9:47 ` Oliver Kiddle [this message]
2018-04-05 9:53 ` Chris Lamb
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=25819.1522921669@thecus \
--to=okiddle@yahoo.co.uk \
--cc=891140@bugs.debian.org \
--cc=lamby@debian.org \
--cc=zsh-workers@zsh.org \
/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).