[Prev][Next][Index][Thread]

SUMMARY: Default directory



Hi,

I received many suggestions but the simplest way is as following:

PS1="`whoami`@`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@xxxxxxxx
>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 
>