ZSH color prompt - not working
Quoting from the manual,
In the case of colours, there is a shell function colors supplied
with the standard distribution to help you. When loaded and
run, it defines associative array parameters $fg and $bg which you
use to extract the escape sequences for given colours, for example
${fg[red]}${bg[yellow]} produces the sequences for red text on a
yellow background. So for example,
PS1="%{${bg[white]}${fg[red]}%}%(?..(%?%))\
%{${fg[yellow]}${bg[black]}%}%# "
I can't get these color tags to work. Anyone had luck with this? Thanks.
MBP 1st generation, Mac OS X (10.5.7), Safari 4.0