From owner-freebsd-questions Wed Jan 2 17:34:10 2002 Delivered-To: freebsd-questions@freebsd.org Received: from lists.blarg.net (lists.blarg.net [206.124.128.17]) by hub.freebsd.org (Postfix) with ESMTP id E6D7037B416 for ; Wed, 2 Jan 2002 17:34:06 -0800 (PST) Received: from thig.blarg.net (thig.blarg.net [206.124.128.18]) by lists.blarg.net (Postfix) with ESMTP id 8D8DCBCD8; Wed, 2 Jan 2002 17:34:06 -0800 (PST) Received: from localhost.localdomain ([206.124.139.115]) by thig.blarg.net (8.9.3/8.9.3) with ESMTP id RAA19027; Wed, 2 Jan 2002 17:34:06 -0800 Received: (from jojo@localhost) by localhost.localdomain (8.11.6/8.11.3) id g031ZEi37792; Wed, 2 Jan 2002 17:35:14 -0800 (PST) (envelope-from swear@blarg.net) To: "Andre` Niel Cameron" Cc: Subject: Re: Shell prompt contest References: <20020102150618.04ae22ff.johann@broadpark.no> <05ad01c193e8$a8671c30$a50410ac@olmct.net> From: swear@blarg.net (Gary W. Swearingen) Date: 02 Jan 2002 17:35:13 -0800 In-Reply-To: <05ad01c193e8$a8671c30$a50410ac@olmct.net> Message-ID: Lines: 23 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Andre` Niel Cameron" 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