Reputation: 161
I just got a Mac and I'm trying to customize my Zsh prompt with colors but I can't get colors to work. I'm not sure if its because of LS_COLORS or what.
Here's my .zshrc
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
# TERMINAL PROMPT
PROMPT="%F{purple}%f%F{orange}%f%n %d >> "
export PROMPT;
Upvotes: 2
Views: 2631
Reputation: 2981
%F
and %f
act more like 'start color' and 'stop color', so they need to surround the text and operators that you want to colorize. Also, very few named colors are supported (just black, red, green, yellow, blue, magenta, cyan and white); you'll have better luck with the numeric values from the xterm column of this table.
Try this:
PROMPT="%F{magenta}%n%f %F{214}%d%f >> "
Upvotes: 1