[Techtalk] coloured prompts
Teri Solow
tsolow at terisolow.com
Fri May 7 11:36:12 EST 2004
On Thu, May 06, 2004 at 02:02:14PM -0400, Emma Jane Hogbin said:
> I've just added the following to my .bash_profile, but now I don't get
> proper line wrap if I need to write a command that's more than one line
> long. Instead of wrapping onto the next line, it starts again at the
> beginning of the line it's already on. I'm using Eterm but only because I
> like the scroll bars and the fact that I can make it semi-transparent. I'm
> open to other terms that offer these same features..
>
> export PS1="\[\033[0;33m\]\h:\w \t $ \[\033[0m\]\a"
You need to escape the bell character too, as it doesn't get displayed, per se, on the screen:
export PS1="\[\e[0;33m\]\h:\w \t $ \[\e[0m\]\[\a\]"
--
Teri Solow
http://terisolow.com
Santa's elves are just a bunch of subordinate Clauses.
More information about the Techtalk
mailing list