From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id UAA14860 for ; Fri, 20 Sep 1996 20:22:06 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id GAA28045; Fri, 20 Sep 1996 06:12:25 -0400 (EDT) Resent-Date: Fri, 20 Sep 1996 06:07:45 -0400 (EDT) Message-Id: <6767.199609201003@sun.aston.ac.uk> To: shr@s3.com Cc: zsh-users@math.gatech.edu Subject: Re: Colors In-Reply-To: Your message of "Thu, 19 Sep 1996 19:03:41 -0700 (PDT)" References: <9609200203.AA10566@s3> X-Mailer: Mew version 1.06 on Emacs 19.33.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Date: Fri, 20 Sep 1996 11:03:24 +0100 From: Richard Lister Resent-Message-ID: <"L4D2F3.0.Br6.mpcGo"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/415 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu From: shr@s3.com (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@aston.ac.uk http://www.ncrg.aston.ac.uk/~listerrj/