Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Jan 2002 20:35:35 -0500
From:      "Andre` Niel Cameron" <AndreC@Axxs.net>
To:        "Gary W. Swearingen" <swear@blarg.net>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Shell prompt contest
Message-ID:  <064501c193f7$4b311e80$a50410ac@olmct.net>
References:  <20020102150618.04ae22ff.johann@broadpark.no><l8ell8ba0f.ll8@localhost.localdomain><05ad01c193e8$a8671c30$a50410ac@olmct.net> <h81yh8b4j2.yh8@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a good one thanks, I'll play arround with it:)

Regards,
Andre` C.
Technical Support
ԿԬ
----------------------------------------------------------------------------
-
Visit our support manual at http://supportmanual.com/
----- Original Message -----
From: "Gary W. Swearingen" <swear@blarg.net>
To: "Andre` Niel Cameron" <AndreC@Axxs.net>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Wednesday, January 02, 2002 8:35 PM
Subject: Re: Shell prompt contest


> "Andre` Niel Cameron" <AndreC@Axxs.net> writes:
>
> > > $ cd /root/bin
> > > ## 15:25:25 ## username @ /root/bin ## Wed 2 Jan 2002 PST
> > > $ next-command....
> >
> > I like this, could anyone convert it to bash with color?  I have no clue
how
> > to do it:)
>
> Here's something similar I used for a while in bash.
> The colors should probably be toned down.
>
> PS1="\[\033[33;40;1m\] \u \[\033[37;40;1m\]\t\[\033[0m\]\[\033[33;40;1m\]
\$PWD/ \[\033[0m\]\[\033[37;40;1m\]\d \[\033[0m\]\n\[\033[35;35;1m\]$
\[\033[0m\]"
> PS2="\[\033[35;35;1m\]> \[\033[0m\]"
>
> # 32 = green
> # 33 = yellow
> # 34 = blue
> # 35 = magenta
> # 36 = cyan
> # 37 = white
> # 38 = ** crashes xterm **
> # 40 = black


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?064501c193f7$4b311e80$a50410ac>