Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Please make "apt install <tab>" completion work on "local" .deb files



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



Messages sorted by: Reverse Date, Date, Thread, Author