Firstly, Iβm not sure which terminal you are using or if it will even support the color orange. My supports the following: red, blue, green, cyan, yellow, magenta, black and white. And here is how I get the colors in my terminal:
You need to load the colors first using autoload . I use the following to load colors and assign them meaningful names
#load colors autoload colors && colors for COLOR in RED GREEN YELLOW BLUE MAGENTA CYAN BLACK WHITE; do eval $COLOR='%{$fg_no_bold[${(L)COLOR}]%}'
You can set the host name at your invitation using the %m line. To set, say, a red host name, you would do
${RED}%m${WHITE}\>
which will print something like bneil.so>
abcd May 28 '11 at 5:38 a.m. 2011-05-28 05:38
source share