4

If I am cd'ing into a directory, there is a setting in my ~/.zshrc that tells zsh to always launch a menu when I hit tab on an ambiguous completion, e.g.

  • ~% cd /etc/a tab

will immediately cause a menu to launch

~/.zshrc

autoload -Uz compinit
compinit

zstyle ':completion:*:*:cd:*' menu yes select
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s%p

What Im trying to do is get the same behaviour but for command options,
e.g.

  • ~% rsync - tab

What is currently happening is I get:

zsh: do you wish to see all 405 possibilities (136 lines)?

How can I get a menu to launch immediately like zsh does on cd completion?

4

I just guessed at some variations of the menu command and this worked

zstyle ':completion:*' menu yes select

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.