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

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



Hi!

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

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

(ie. a "naive" _files will not be correct)

I did try adding this myself but my zsh completion fu is clearly
not up to the task and I originally filed this in Debian here but
it was suggested I take it upstream:

  https://bugs.debian.org/891140

Thanks in advance :)


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby@xxxxxxxxxx / chris-lamb.co.uk
       `-



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