Hi,
I received many suggestions but the simplest way is as following:
PS1="`whoami`_at_`hostname`[\${PWD}]"
Many thanks to all of you.
Yaseen
-----------
 
>----------
>From: 	Yaseen Mostamand - EXC
>Sent: 	Wednesday, April 02, 1997 4:53 PM
>To: 	alpha-osf-managers_at_ornl.gov
>Subject: 	Default directory
>
>Hi Folks,
>
>I am new with Digital UNIX. In my .profile, I have a command line as
>following:
>PS1="`hostname`:`whoami`[`pwd`]"
>
>When I login, the prompt shows the host-name, user-name and my default
>directory but when I change the directory the prompt still show as I am
>in my home directory. 
>
>What I would like to see is when I change my directory my prompt should
>change to the current directory as well. Do I miss something in here?
>
>Thanks,
>Yaseen 
>
Received on Thu Apr 03 1997 - 19:44:11 NZST