Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

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%} $ '
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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