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

Reply via email to