Path: utzoo!yunexus!geac!syntron!gerry From: gerry@syntron.UUCP (G. Roderick Singleton) Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Message-ID: <244@syntron.UUCP> Date: 13 Feb 88 00:59:36 GMT Article-I.D.: syntron.244 Posted: Fri Feb 12 19:59:36 1988 References: <11724@brl-adm.ARPA> Reply-To: gerry@syntron.UUCP (G. Roderick Singleton) Organization: Syntronics Manufacturing Inc., Richmond Hill, Ontario, Canada Lines: 39 In article <11724@brl-adm.ARPA> kevinc%bearcat.lim.tek.com@relay.cs.net (Kevin Cosgrove 627-5212) 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. <> <> Thanks, <> Dave Mensing <> <> mensing.henr801c@xerox.com <> (716) 427-6423 < < I use the following alias with C shell. I put the following line < in my ~/.cshrc file. < < alias cd 'chdir \!*;set prompt="[`whoami`@`hostname`-$cwd:t] "' <_____________________________________________________________________________ < < Kevin Cosgrove Tektronix, Inc. < 11K Plug-Ins Project Leader PO Box 500, M/S 47-092 < LIM Product Test Engineering Beaverton, OR 97077 < kevinc@bearcat.LIM.TEK.COM (503)-627-5212 <_____________________________________________________________________________ For those with source lisences, there is yet another solution. Install the Georgia Tech modifications on /bin/sh and your requirement is met within sh, itself. Even better news you get tilde name and history without the overhead of /bin/csh. These were posted some time ago but are still available from most of the archive sites. Makes using Bourne shell worthwhile. -- G. Roderick Singleton | "ALL animals are created equal, , | BUT some animals are MORE equal or , | than others." a warning from or | "Animal Farm" by George Orwell