Path: utzoo!utgpu!water!watmath!clyde!rutgers!mailrus!nrl-cmf!ames!amdcad!sun!pitstop!sundc!seismo!uunet!steinmetz!davidsen From: davidsen@steinmetz.steinmetz.UUCP (William E. Davidsen Jr) Newsgroups: comp.unix.questions Subject: Re: current pwd in prompt Message-ID: <9481@steinmetz.steinmetz.UUCP> Date: 9 Feb 88 17:26:39 GMT References: <11656@brl-adm.ARPA> Reply-To: davidsen@crdos1.UUCP (bill davidsen) Organization: General Electric CRD, Schenectady, NY Lines: 15 In article <11656@brl-adm.ARPA> Mensing.HENR801c@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@ge-crd.arpa) {uunet | philabs | seismo}!steinmetz!crdos1!davidsen "Stupidity, like virtue, is its own reward" -me