From owner-freebsd-questions Wed Jan 2 12: 8: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from stereophonic.noops.org (adsl-63-195-97-84.dsl.snfc21.pacbell.net [63.195.97.84]) by hub.freebsd.org (Postfix) with SMTP id 43BB837B41A for ; Wed, 2 Jan 2002 12:07:49 -0800 (PST) Received: (qmail 75081 invoked by uid 1000); 2 Jan 2002 20:07:49 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 2 Jan 2002 20:07:49 -0000 Date: Wed, 2 Jan 2002 12:07:49 -0800 (PST) From: Thomas Cannon To: Subject: Re: Shell prompt contest In-Reply-To: Message-ID: <20020102115849.P73145-100000@stereophonic.noops.org> 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 I'm not one for fancy prompts with the date, room temperature, time since the epoch, Foundry's stock price, and barometric pressue in my PS1. However, I do like to add a bit of practical use to things when I can. I switch between my usual 'tcannon' login and root quite a bit, as I'm always tweaking or tinkering, and have always had my login name show up in my prompt. However, lately I've added another simple brain-dead problem avoidance mechanism -- my prompt changes color depending on who i'm logged in as, and on which machine. It's green if I'm 'tcannon' and red if I'm root... which might just save me from a think-o when I'm working at 3:00am on code and chianti at the same time. tcannon has this in the dotfiles: PS1="\[\033[1;32m\][\u@\h]\\$ \[\033[0m\]" root has this: PS1="\[\033[1;31m\][\u@\h]\\$ \[\033[0m\]" Simple, and not too terribly creative, but I find it handy. Happy new year, thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message