Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site gitpyr.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!gatech!gitpyr!robert From: robert@gitpyr.UUCP (Robert Viduya) Newsgroups: net.unix-wizards Subject: Re: PS1 change (ksh) Message-ID: <246@gitpyr.UUCP> Date: Sat, 23-Mar-85 15:52:31 EST Article-I.D.: gitpyr.246 Posted: Sat Mar 23 15:52:31 1985 Date-Received: Sun, 24-Mar-85 05:49:55 EST References: <245@rruxe.UUCP> <1308@amdahl.UUCP> <530@whuxl.UUCP> Organization: Georgia Tech, Atlanta Lines: 20 > If you want the cwd in the prompt, just make a new function called, say, ch: > > ch() > { > if cd $1 > then PS1="[`pwd`] " > fi > } > The problem with this is that if you're used to the "cd" command, you have to spend some time acclimating to the new "ch" command. Your prompt can lie if you call "cd" directly (without going through "ch"). robert -- Robert Viduya Georgia Institute of Technology ...!{akgua,allegra,amd,hplabs,ihnp4,masscomp,ut-ngp}!gatech!gitpyr!robert ...!{rlgvax,sb1,uf-cgrl,unmvax,ut-sally}!gatech!gitpyr!robert