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

Re: tab completion doesn't work if there's a double slash in path



Timothee Cour wrote on Sat, Dec 31, 2016 at 17:19:56 -0800:
> ls /Users/foo/bar//fob1/fob[TAB] doesn't auto-complete because there is a
> double slash (//) somewhere in the path.
> This case often happens in my workflow. Could autocomplete work in presence
> of `//` ?

It's not a bug, it's a feature: with two consecutive slashes, it looks
for paths of the form /Users*/foo*/bar*/*/fob1*/fob*.

* danielsh greps zshcompsys(1)…

There's a 'squeeze-slashes' style you can set to disable that:

    zstyle :completion:\* squeeze-slashes true

Cheers,

Daniel



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