Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Unix question: how to display SID and path in prompt
Hi!
In my .profile of the oracle user (we're mostly using ksh here), I have set up the prompt that it gives me the host name and database SID.
# always displays host name and Oracle SID as prompt PS1="`hostname`;`echo $ORACLE_SID`$ "
How can I extend this prompt to also include the current directory that I'm in?
e.g. prod1;PCLDB1; u010/app/oracle/admin/PCLDB1
Thanks,
Helmut
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Daiminger, Helmut
INET: Helmut.Daiminger_at_KirchGruppe.de
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: ListGuru_at_fatcity.com (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). Received on Mon Aug 26 2002 - 08:48:20 CDT
![]() |
![]() |