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

Re: completion is over thinking things.



On Sat, Sep 28, 2019 at 7:06 PM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
>     $ ls inst.deb
>     inst.deb
>
>     $ apt-get install inst. [TAB]
>     Completing package
>     libapt-inst2.0
>     libmono-system-configuration-install4.0-cil
>     libmono-system-runtime-durableinstancing4.0-cil
>
> How can I get completion to stop looking and finding files God knows
> where and just expand filenames in the current directory?

This doesn't answer your question but `apt-get install inst.deb` won't
install ./inst.deb. Instead, it'll install all packages that partially
match regex `inst.deb`. You might be looking for `dpkg -i inst.deb`,
which conveniently also completes `inst.[TAB]` as you would expect.

Roman.



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