Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!hao!oddjob!gargoyle!ihnp4!occrsh!occrsh.ATT.COM!rjd From: rjd@occrsh.ATT.COM Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Message-ID: <142700023@occrsh.ATT.COM> Date: 9 Feb 88 17:32:00 GMT References: <11657@brl-adm.ARPA> Lines: 23 Nf-ID: #R:brl-adm.ARPA:-1165700:occrsh.ATT.COM:142700023:000:651 Nf-From: occrsh.ATT.COM!rjd Feb 9 11:32:00 1988 >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. > >Thanks, > Dave Mensing Well, since we just went through this in one of the groups I read (this one?), and I am also running ksh for my login, this was the method that I liked the best. Put into your .profile (or the file that ENV is set to): c() { cd $* PS1="${PWD}: " } And use "c " to change directories. Randy