[Pkg-zsh-devel] Bug#891140: Bug#891140: zsh: Please make "apt install <tab>" completion work on "local" .deb files
Daniel Shahaf
danielsh at apache.org
Fri Feb 23 20:54:43 UTC 2018
Chris Lamb wrote on Thu, Feb 22, 2018 at 16:18:29 +0000:
> $ sudo apt install ./f<TAB>
>
> … should expand to:
>
> $ sudo apt install ./foo_1.0_amd64.deb
>
> It probably wants to be limited to .deb files so it doesn't trigger
> for the usual use-cases of installing packages from APT.
In a nutshell, _apt-cmd() should call «_files -g '*.deb'» where it currently
calls _deb_packages.
I'm not sure whether it would be best to implement this with _alternative or
with an alternative at the _regex_arguments level (of which _apt_arguments is a
wrapper).
I don't have time to investigate this further at the moment, sorry.
CHeers,
Daniel
More information about the Pkg-zsh-devel
mailing list