Re^2: Getting UNIX prompt to display current directory

Maarten Litmaath maart at cs.vu.nl
Thu Mar 23 14:09:46 AEST 1989


connet at sal50.usc.edu (David Connet) writes:
\...
\Actually you can just get away with
\	PS1="\$PWD: "
\        ^
\The backslash is required.  The shell (at least ksh) then reevaluates
\the PS1 each time.

Precisely! *ksh*, not sh.
-- 
 Modeless editors and strong typing:   |Maarten Litmaath @ VU Amsterdam:
   both for people with weak memories. |maart at cs.vu.nl, mcvax!botter!maart



More information about the Comp.unix.questions mailing list