34

One of the features that I kept hearing about zsh was that it will highlight your selection as you tab through a list of possible choices. Such as choosing a directory to cd into.

I thought this feature would be enabled automatically, but it doesn't appear to be. At the moment I have this in my .zshrc for git auto completion

  zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
  fpath=(/usr/local/share/zsh-completions $fpath)
  autoload -U compinit && compinit
  zmodload -i zsh/complist

What else do I have to add to get this effect?

mhartington
  • 6,905
  • 4
  • 40
  • 75

1 Answers1

62

You also need menu and select:

zstyle ':completion:*' menu select
svlasov
  • 9,923
  • 2
  • 38
  • 39
  • Thank you so much for this! Have been looking for days on how to get this to working (again after new mac setup). – Norfeldt Mar 11 '22 at 07:05