tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Default directory
@ 1997-04-03 17:25 most_ya
  0 siblings, 0 replies; only message in thread
From: most_ya @ 1997-04-03 17:25 UTC (permalink / raw)
  To: tru64-unix-managers

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@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 
>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-04-03 17:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-04-03 17:25 SUMMARY: Default directory most_ya

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox