zsh: Do NOT expand wildcard on tab completion
Posted
by
BMorgenthaler
on Super User
See other posts from Super User
or by BMorgenthaler
Published on 2014-08-18T16:15:43Z
Indexed on
2014/08/18
16:30 UTC
Read the original article
Hit count: 263
I'm wondering how I can configure ZSH to NOT expand the wildcard in a filename. So for example I have a directory of a couple hundred files named like so:
a.foo-bar a.foo b.foo-bar b.foo c.foo-bar c.foo
I would like to be able to perform a tab completion matching AFTER a wildcard, so
cat *.foo-< tab > => cat *.foo-bar
instead what I get is
cat *.foo-< tab > => cat a.foo-bar
file
a.foo-bar b.foo-bar c.foo-bar
© Super User or respective owner