Re: Fw: OT - Getting fired for database oops

  • From: "Rich Jesse" <rjoralist@xxxxxxxxxxxxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx
  • Date: Mon, 18 May 2009 12:05:31 -0500 (CDT)

> 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


--
//www.freelists.org/webpage/oracle-l


Other related posts: