[wplug] colored prompt
Patrick Wagstrom
pwagstro at andrew.cmu.edu
Thu Apr 12 07:49:18 EDT 2007
Zach wrote:
> I've seen in some Linux screenshots that some users have their BASH
> prompt colorized. I would like to set this up for my gnome-terminals,
> xterms and system consoles (Ctrl-Alt-Fn). I would like to have:
>
> user at host~/CWD>
>
> Where user is dark blue, @ is red, host is dark green, ~ is red, /CWD
> is gray and > is dark blue.
You'll want to use ANSI escape sequences, just like in DOS. There's a
much better writeup than any of us could do at:
http://ldp.wplug.org/LDP/abs/html/colorizing.html
In bash, you'll need to modify your PS1 and environment variables for this.
--Patrick
More information about the wplug
mailing list