How To: set PS1 to show users "current" directory?

Ed Holley ed at bee.austin.ibm.com
Tue Apr 16 00:58:09 AEST 1991


Under the ksh, you can use

PS1='${PWD}> '

To get the equivalent of $p$g in dos.


In article <1991Apr13.025012.13451 at shared.uucp>, davec at shared.uucp (Dave
Close) writes:
> Path: awdprime!auschs!romp!cs.utexas.edu!uunet!shared!davec
> From: davec at shared.uucp (Dave Close)
> Subject: Re: How To: set PS1 to show users "current" directory?
> Keywords: AIX
> Organization: Shared Financial Systems, Dallas, TX
> 
> In article <1599 at msa3b.UUCP> mgphl at msa3b.UUCP (Michael Phillips) writes:
> >Trying to set up AIX on a PS/2 & have users that want their command
> >prompt to show their current directory (aka: $P$G in **DOS).


disclaimer: all views expressed are mine, not my employers.
----------------------------------------------------------------
Ed Holley	IBM AWD
ibm net:	ed at bee.austin.ibm.com
vnet:		holley at austin
internet:	eholley at wombat.austin.ibm.com
uucp:		...!cs.utexas.edu!ibmchs!auschs!bee.austin.ibm.com!ed



More information about the Comp.unix.aix mailing list