Path: utzoo!mnetor!uunet!husc6!mailrus!nrl-cmf!cmcl2!brl-adm!adm!kevinc%bearcat.lim.tek.com@relay.cs.net From: kevinc%bearcat.lim.tek.com@relay.cs.net (Kevin Cosgrove 627-5212) Newsgroups: comp.unix.wizards Subject: Re: current pwd in prompt Message-ID: <11724@brl-adm.ARPA> Date: 9 Feb 88 01:00:01 GMT Sender: news@brl-adm.ARPA Lines: 26 Dave, > 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 _____________________________________________________________________________