Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Colors



From: shr@xxxxxx (Scott RoLanD)
Subject: Colors
Date: Thu, 19 Sep 1996 19:03:41 -0700 (PDT)

> I just started using color-ls with a color-xterm last month, and I'm
> addicted to it now.

> Zsh currently supports making the prompts bold, etc. Has anyone played
> with trying to give them certain colors?

Sure. This is what I do:

if [ "$TERM" = "xterm" ] ; then
  ESC=""
  NORMAL="%{${ESC}[0m%}"
  YELLOW="%{${ESC}[33m%}"
  BLUE="%{${ESC}[34m%}"

  PS1="${BLUE}%m${NORMAL}%(#.#.$) "
  RPS1=" ${YELLOW}%~${NORMAL}"
fi


Ric

Richard J. Lister, Research Assistant    
Neural Computing Research Group, Aston University
r.j.lister@xxxxxxxxxxx 
http://www.ncrg.aston.ac.uk/~listerrj/ 



Messages sorted by: Reverse Date, Date, Thread, Author