[Pkg-zsh-devel] Bug#891140: Bug#891140: Bug#891140: zsh: Please make "apt install <tab>" completion work on "local" .deb files

Daniel Shahaf danielsh at apache.org
Tue Feb 27 16:35:04 UTC 2018


> > In a nutshell, _apt-cmd() should call «_files -g '*.deb'» where it currently
> > calls _deb_packages.
> 
> I did try this (honest!) but I couldn't get it to work. :)
> 
> Also, note that "apt install" really does need a path-ish, ie:
> 
>   $ apt install ./foo.deb
> 
> ie. not simply doing
> 
>   $ apt install foo.deb
> 
> So, a naive _files as you suggest will be broken, unless I'm
> missing something  :)

No, you're correct, plain _files wouldn't do.

Would you be able to take this to the upstream mailing list?  The people who
really know the completion system don't necessarily read Debian bug reports.

Cheers,

Daniel



More information about the Pkg-zsh-devel mailing list