tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: <most_ya () central ! printronix ! com>
To: tru64-unix-managers
Subject: SUMMARY: Default directory
Date: Thu, 03 Apr 1997 17:25:22 +0000	[thread overview]
Message-ID: <96078611110174.tru64-unix-managers.marc@archive.invalid> (raw)

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 
>

                 reply	other threads:[~1997-04-03 17:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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