Re: Fw: OT - Getting fired for database oops

From: Rich Jesse <>
Date: Mon, 18 May 2009 12:05:31 -0500 (CDT)
Message-ID: <>

> 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:

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

And for the prod ones:

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.


Received on Mon May 18 2009 - 12:05:31 CDT

Original text of this message