Re: ANSI Color Escapes in $PS1.. heh.
*-"Ryan King" <rking@duke-energy.com>
|
| Just how stupid an idea did I have when I did this:
|
| $PS1="[\e[31m\h\e[m:\e[34m\u\e[m:\e[31m\w\$\e[m]"
|
| in my /etc/profile?
Chuck explained what was going on. Your prompt could be:
PS1="[\[\e[31m\]\h\[\e[m\]:\[\e[34m\]\u\[\e[m\]:\[\e[31m\]\w\[\$\e[m\]]"
(with possibility of errors)
--
The only way tcsh "rocks" is when the rocks are attached to its feet
in the deepest part of a very deep lake. (Linus Torvalds)
olet@ifi.uio.no [-: .elOle. :-] olet@debian.org
Reply to: