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

Re: completion using menu



Adding "menu no" is still the same, i.e., no menu, no completion (by
pressing TAB)
What I want to have is menu completion for all the commands, except cd
(normal completion)

On 2/25/07, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
"Anupam Srivastava" wrote:
> Not-so-quick as it is, I want to use selection through menu for all
> the commands, barring few. Is it possible? I added these lines to my
> .zshrc but to no avail:
>
> zstyle ':completion:*:*:*:*' menu yes select
> zstyle ':completion:*:*:*' force-list always
> zstyle -d ':completion:*:*:cd:*'
> zstyle -d ':completion:*:cd:*'

"-d" simply deletes any existing matching style from the list so that
the completion system doesn't see it any more.  You probably need:

zstyle ':completion:*:*:cd:*' menu no

See the manual entry for zstyle under zshmodules for how styles are
selected.

--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/



--
Anupam Srivastava
-----------------
[Isaac Newton falls off the tree]

Cho-Cho: Did the fall hurt you?
Newton: It wasn't the fall; it was the sudden stop at the end.



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