current pwd in prompt

Chris Calabrese[rs] cjc at ulysses.homer.nj.att.com
Tue Feb 9 23:49:40 AEST 1988


In article <17877 at topaz.rutgers.edu>, ron at topaz.rutgers.edu.UUCP writes:
> [...]
> 
> On the Korn shell (but not most Bourne shell PS1 is evaluated each time
> it is printed so you can:
> 
>     PS1="`pwd` "
> 
> -Ron


The Korn shell also has an internal variable which keeps track of
the current directory, thus
	PS1=$PWD
works just as well, only a zillion times faster.

	Chris Calabrese
	AT&T Bell Labs
	ulysses!cjc



More information about the Comp.unix.wizards mailing list