Re: Where is Bash Prompt Set??
Johannes Wiedersich put forth on 2/9/2010 11:09 AM:
> Stan Hoeppner wrote:
>> Also, I've always _hated_ that # for root's prompt, so I killed it and use a $
>> now. No need for it since root is now all red. :)
>
> FWIW, if I document my work, eg. by copy-pasting the command into a
> doc-file, the color information is lost. IMHO it is therefore usefull to
> have a different prompt for root. YMMV, of course.
>
> Just my humble 2ct.
Maybe you misunderstood my example shell prompt code. Or maybe I'm just not
understanding what you're saying. Here, copy/pasted from a Putty terminal
session. Not a doc-file, but demonstrates your example nonetheless.
[11:14:14][stan@greer]/etc/postfix$
[11:16:09][root@greer]/etc/postfix$
There. No color. Root does has a different prompt. The prompt says "root"
instead of "user". What about your concern am I missing?
--
Stan
Reply to: