When I use Tab to complete a filename and more than one file matches, zsh uses an unsuitable color. Consider the following screenshot which exemplifies the problem:
I have entered vi .zsh
and pressed Tab
.
How can I change this color?
These are the relevant parts of the .zshrc file:
setopt EXTENDED_GLOB
setopt NO_CORRECT
setopt COMPLETE_IN_WORD
autoload -U colors && colors
## Completions
autoload -U compinit
compinit -C
## case-insensitive (all), partial-word and then substring completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
setopt prompt_subst
PROMPT='%{$fg[blue]%}%1.${vcs_info_msg_0_}%{$reset_color%} $ '
vi .zsh
. It starts out dark gray (like the completions below), upon pressingTab
, it changes the color to the light one shown in the screenshot.zsh-syntax-highlighting
?