Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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:

zsh tab completion

I have entered vi .zsh and pressed Tab.

How can I change this color?

These are the relevant parts of the .zshrc file:


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%} $ '
share|improve this question
That's not from the default setup. So you'll need to say how you configured zsh. – Gilles Apr 29 '11 at 23:42
@peth I want to change the color of the line reading vi .zsh. It starts out dark gray (like the completions below), upon pressing Tab, it changes the color to the light one shown in the screenshot. – Nickolay Kolev May 15 '11 at 10:01

I had similar issues with completions before but that was only because i used bold text in my prompt and i didn't turn it off at the end. Zsh changes the latest slash to bold for me.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .