From: Richard Lister <listerrj@helios.aston.ac.uk>
To: shr@s3.com
Cc: zsh-users@math.gatech.edu
Subject: Re: Colors
Date: Fri, 20 Sep 1996 11:03:24 +0100 [thread overview]
Message-ID: <6767.199609201003@sun.aston.ac.uk> (raw)
In-Reply-To: Your message of "Thu, 19 Sep 1996 19:03:41 -0700 (PDT)"
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/
next prev parent reply other threads:[~1996-09-20 10:22 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-09-20 2:03 Colors Scott RoLanD
1996-09-20 9:29 ` Colors Bruce Stephens
1996-09-20 11:24 ` [Q] how to set stty on HPUX 10.01 with zsh 3.0.0 Aubert Pierre
1996-09-20 12:57 ` Zefram
1996-09-20 10:03 ` Richard Lister [this message]
1996-09-20 15:23 ` Colors Greg J. Badros
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6767.199609201003@sun.aston.ac.uk \
--to=listerrj@helios.aston.ac.uk \
--cc=shr@s3.com \
--cc=zsh-users@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).