Changing the prompt via .profile
Hi experts.
I want to change the prompt so that dynamically I can see the path that I'am in and also if I do a su the user that I'am log in. Also the host.
Right now I only see this but when I change the directory the prompt does not change dinamically.
bayorac-02:/export/home/oracle> cd dba
bayorac-02:/export/home/oracle> pwd
/export/home/oracle/dba
extract of .profile:
uname -a:
I want to change the prompt so that dynamically I can see the path that I'am in and also if I do a su the user that I'am log in. Also the host.
Right now I only see this but when I change the directory the prompt does not change dinamically.
bayorac-02:/export/home/oracle> cd dba
bayorac-02:/export/home/oracle> pwd
/export/home/oracle/dba
extract of .profile:
PS1="`hostname`:"`pwd`"> "
export PS1
export PS1
uname -a:
SunOS bayorac-02 5.10 Generic_147441-12 i86pc i386 i86pc
0