Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Colors
- X-seq: zsh-users 415
- From: Richard Lister <listerrj@xxxxxxxxxxxxxxxxxx>
- To: shr@xxxxxx
- Subject: Re: Colors
- Date: Fri, 20 Sep 1996 11:03:24 +0100
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: Your message of "Thu, 19 Sep 1996 19:03:41 -0700 (PDT)"
- References: <9609200203.AA10566@s3>
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