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