One of the easiest ways to do it is to overload the CD command.   That is,
build your own CD command and alias the real CD to it.  In your command, you
will display the variables you want to on your prompt.  I have done it
before.  If you want a sample, let me know and I will dig up what we did (it
was at the last job).   

The only drawback is that it only change when you change directory.  It is
not interactive and changing on every command.

-----Original Message-----
Sent: Wednesday, June 20, 2001 3:26 PM
To: Multiple recipients of list ORACLE-L


Anybody knows how to show current working directory and in general shell
variable in Korn shell that prompt change when variable changes - for
current working directory and ORACLE_SID for example. I know how to do it in
bash but cannot do it right in Korn.

Alex Hillman
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Hillman, Alex
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kevin Lange
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to