Date: 02 Jan 2002 17:35:13 -0800 From: swear@blarg.net (Gary W. Swearingen) To: "Andre` Niel Cameron" <AndreC@Axxs.net> Cc: <freebsd-questions@FreeBSD.ORG> Subject: Re: Shell prompt contest Message-ID: <h81yh8b4j2.yh8@localhost.localdomain> In-Reply-To: <05ad01c193e8$a8671c30$a50410ac@olmct.net> References: <20020102150618.04ae22ff.johann@broadpark.no> <l8ell8ba0f.ll8@localhost.localdomain> <05ad01c193e8$a8671c30$a50410ac@olmct.net>
next in thread | previous in thread | raw e-mail | index | archive | help
"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?h81yh8b4j2.yh8>