current pwd in prompt

Michael T Sullivan sullivan at vsi.UUCP
Wed Feb 10 09:09:18 AEST 1988


In article <17877 at topaz.rutgers.edu>, ron at topaz.rutgers.edu (Ron Natalie) writes:
> This works with any real shell:
> 
>     PS1="."
...
> On the Korn shell (but not most Bourne shell PS1 is evaluated each time
> it is printed so you can:
> 
>     PS1="`pwd` "
The current (February) issue of "Unix World" has a nice little script for
this written by Aspen Technologies, Inc., the ksh people.  It's on page 109
in the Wizard's Grabbag.

Michael Sullivan
{ucbvax | ihnp4 | sun}!amdcad!uport!vsi!sullivan
{uunet | attmail}!vsi!sullivan



More information about the Comp.unix.wizards mailing list