Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!lll-tis!ames!rutgers!mtune!whuts!picuxa!gp From: gp@picuxa.UUCP (Greg Pasquariello X1190) Newsgroups: comp.unix.questions Subject: Re: current pwd in prompt Message-ID: <476@picuxa.UUCP> Date: 8 Feb 88 15:03:48 GMT References: <11656@brl-adm.ARPA> Organization: AT&T Information Systems, Parsippany NJ Lines: 31 Summary: Aaaargh!! 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. > > Just in case it matters, I am on an AT&T 3B2/400 running korn shell under UNIX > System V.3.1. Aaargh not again! You can't believe how this same quesstion cluttered up the netwaves recently. Since you're running korn-shell, your in luck. The way I have done it as follows: Create a file called .env or something like that in your home directory. Add the line PS="`pwd` > " The '>' is not necessary, but I use it to delimit my prompt. Add the line ENV=$HOME/.env to your .profile. This works for me. You should probably prepare yourself to receive a flurry of responses to this question. Good Luck Greg Pasquariello ihnp4!picuxa!gp