From owner-freebsd-questions Wed Jan 2 17:40:33 2002 Delivered-To: freebsd-questions@freebsd.org Received: from gaia.host4u.net (gaia.host4u.net [209.150.128.48]) by hub.freebsd.org (Postfix) with ESMTP id 6E38F37B41C for ; Wed, 2 Jan 2002 17:40:29 -0800 (PST) Received: from andre (bricks.fastdns.net [216.71.43.117]) by gaia.host4u.net (8.8.5/8.8.5) with SMTP id TAA28951; Wed, 2 Jan 2002 19:12:35 -0600 Message-ID: <064501c193f7$4b311e80$a50410ac@olmct.net> Reply-To: "Andre` Niel Cameron" From: "Andre` Niel Cameron" To: "Gary W. Swearingen" Cc: References: <20020102150618.04ae22ff.johann@broadpark.no><05ad01c193e8$a8671c30$a50410ac@olmct.net> Subject: Re: Shell prompt contest Date: Wed, 2 Jan 2002 20:35:35 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 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 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" To: "Andre` Niel Cameron" Cc: Sent: Wednesday, January 02, 2002 8:35 PM Subject: Re: Shell prompt contest > "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