Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!lhdsy1!yzarn From: yzarn@lhdsy1.chevron.com (Philip Yzarn de Louraille) Newsgroups: comp.unix.questions Subject: Re: $cwd in prompt??? Keywords: C-Shell Message-ID: <976@lhdsy1.chevron.com> Date: 18 Jun 91 18:30:38 GMT References: <17153@darkstar.ucsc.edu> Distribution: comp.unix.questions Organization: Chevron Oil Field Research, La Habra, CA. Lines: 16 In article <17153@darkstar.ucsc.edu> bjsvec@cats.ucsc.edu (Brandon Jason Svec) writes: > > >Can someone tell me how to get my prompt to show the current working directory? > >I have tried something like this: > >alias cd "cd;set prompt = $cwd" # so it will update each time I cd >set prompt = $cwd alias cd cd \!\* \; set prompt=`echo $cwd` -- Philip Yzarn de Louraille Internet: yzarn@chevron.com Research Support Division Unix & Open Systems Chevron Information & Technology Co. Tel: (213) 694-9232 P.O. Box 446, La Habra, CA 90633-0446 Fax: (213) 694-7709