Borsenkow Andrej wrote:
in bash if it hit % cd /home/* and hit tab, it just sits there (although
i can tab complete other stuff)
Can you be more precise? You want complete glob patterns but do not want to
see completion list? You do not want to see completion listing always or
only in case of completing patterns?
i don't want to tab complete them at all in that particular case... ie i'd
like to expand individual filenames but i'd like it to just act like bash and
sit there when i type cd /home/*<tab> or whatever. i may be explaining
myself wrong which might be resulting in some confusion, but that's the best
way i know how to explain it. i still want the * to represent a wildcard; i
just don't want to see a list of 5 billion files at once, and if i type:
mv ju*<tab>
i don't want to have the command line turn into:
mv junk1 junk2 junk2
i wouldn't even mind having something like auto_list or bash_auto_list for
it; i just don't want all possible matches for * to show up on the command
line. if i accidentally type tab when trying to do /home/*/something it's
very annoying to have the whole command line fill up with every possible
match. this has happened to me on a number of occasions.
is there an old skool way to do this? i will brave the new styles if i must
but i am still a bit fearful. i know 4.02 is faster than 4.01 with that, but
a lot of my machines for work are much older versions of zsh.
But I realized that listing is not controlled by style. How weird.
Actually, according to documentation, the
zstyle ':completion::match:*' menu off
must work but does not.
yeah that doesn't work either.
i think the second question has been brought up before, but is there a
way to do: % cd /usr/l<tab>bin and have that complete to /usr/local/bin
as in bash (without putting a space after /usr? i do have
complete_in_word set, but that's not exactly the same thing...
Why do you want to do it "bash style" with zsh? E.g. using zsh it is much
better to do
ls /u/l/bTA
that is cool but not at all what i was trying to accomplish...
the whole reason i'm changing it in the middle of the word is because
i made a mistake. ie
cd /usr/bi (ooops)
cd /usr/l<tab>/bi
in bash this expands to /usr/local/bin - without putting a space befure /bin