[Techtalk] Console Prompt Colors

Finne Boonen fboonen at vub.ac.be
Sat Apr 24 22:54:27 EST 2004


On Sat, 24 Apr 2004, Almut Behrens wrote:

> On Sat, Apr 24, 2004 at 12:26:18PM -0400, Beth Johnson wrote:
> > I have a question related to the ls --colors question asked recently.
> > On my Gentoo system when I'm at the console as my usual user the
> > username part of the prompt is green, and when I su to root, the
> > username part of the prompt changes to red.  I *like* this feature a
> > bunch and would like to see it implemented on my desktop system (Fedora
> > Core 1).
> >
> > Any clues about this?  Is is a profile function or a shell attribute, or
> > what?
>

I used this(http://www.linuxgazette.com/node/view/8385) old LinuxGazette
article to get started on customizing my own prompt. I once had it print
my remaining battery but can't find how I did that anymore ;(

Finne

***********************************************************************************************
normally reserved for signatures
currently lacking one


More information about the Techtalk mailing list