current pwd in prompt
William E. Davidsen Jr
davidsen at steinmetz.steinmetz.UUCP
Wed Feb 10 03:26:39 AEST 1988
In article <11656 at brl-adm.ARPA> Mensing.HENR801c at Xerox.COM writes:
|
| Can anyone explain to me how to get my prompt to be the current directory? I
| have tried several methods without any success. It seems that no matter what
| method I try, the prompt is evaluated once and never changes.
You use the value of PWD, which is the name you want. i.e.:
PS1='$PWD > '
I have seen people saying that you can use `pwd` in the prompt, but
that doesn't work in any of the versions I have seen over the last few
years. $PWD does.
--
bill davidsen (wedu at ge-crd.arpa)
{uunet | philabs | seismo}!steinmetz!crdos1!davidsen
"Stupidity, like virtue, is its own reward" -me
More information about the Comp.unix.questions
mailing list