zsh-workers
 help / color / mirror / code / Atom feed
From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Chris Lamb <lamby@debian.org>
Cc: zsh-workers@zsh.org
Subject: Re: Please make "apt install <tab>" completion work on "local" .deb files
Date: Thu, 22 Mar 2018 01:09:40 +0100	[thread overview]
Message-ID: <25628.1521677380@thecus> (raw)
In-Reply-To: <1519750495.1943824.1285291424.7F4B6205@webmail.messagingengine.com>

On 27 Feb, Chris Lamb wrote:
>
> Please make "apt install <tab>" completion work on local .deb
> files. For example, given a "foo_1.0_amd64.deb" in the current
> directory:
>
>   $ sudo apt install ./f<TAB>
>
> … should expand to:
>
>   $ sudo apt install ./foo_1.0_amd64.deb

Is the same applicable to apt download, source and build-dep also?
Or just some subset of those?

I see it is possible to have arguments like zsh/unstable so this could
be tricky.

> It probably wants to be limited to .deb files so it doesn't trigger
> for the usual use-cases of installing packages from APT. Note that
> "apt install" really does need a path-ish, ie:
>
>   $ apt install ./foo.deb
>
> ie. not simply doing
>
>   $ apt install foo.deb

Is any path valid, just so long as it contains at least one slash? Or does
it have to be something like "./"?

Oliver


  reply	other threads:[~2018-03-22  0:10 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 [this message]
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
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=25628.1521677380@thecus \
    --to=okiddle@yahoo.co.uk \
    --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).