Re: Fw: OT - Getting fired for database oops

From: Rich Jesse <rjoralist_at_society.servebeer.com>
Date: Mon, 18 May 2009 12:05:31 -0500 (CDT)
Message-ID: <f53e119e699e2c7a2d80cdb7c45aa55b.squirrel_at_society.servebeer.com>



> Using different colors is helpful. Personally I usually do that on Windows.
>

Good point! I have this in my .kshrc on my non-prod Oracle logins:

export
PS1='^[[0;32m^[[1m${HOST}:^[[1;33m${PWD}:^[[0;32m^[[1m${ORACLE_SID}^[[0m> '

And for the prod ones:

export
PS1='^[[0;31m^[[1m${HOST}:^[[1;33m${PWD}:^[[0;31m^[[1m${ORACLE_SID}^[[0m> '

The "32" changes the color to green, while "31" changes to red. Red = Production in my mind.

Of course, every environment is different -- the above needs to be adjusted accordingly. I use this combo with the newer PuTTY Tray variant of PuTTY for my SSH client on Winders.

Rich

--
http://www.freelists.org/webpage/oracle-l
Received on Mon May 18 2009 - 12:05:31 CDT

Original text of this message