Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!unmvax!polyslo!steve From: steve@polyslo.CalPoly.EDU (Steve DeJarnett) Newsgroups: comp.sys.pyramid Subject: Re: directory inclusion in prompt Message-ID: <11427@polyslo.CalPoly.EDU> Date: 15 May 89 05:33:36 GMT References: Reply-To: steve@polyslo.CalPoly.EDU (Steve DeJarnett) Distribution: usa Organization: Lab Rat Rumpus Room -- Cal Poly SLO Lines: 21 In article yadav@andromeda.rutgers.edu.UUCP (Ashish Yadav) writes: >Since folks have been talking about tcsh, I would like to know how I could >get the current directory to be 'echo'ed in my prompt. We have tcsh running >on a 9810x, just incase !! You can set your prompt, but it won't update when you move around. To get this, you need to change 'cd' (and popd and pushd) to reevaluate your $prompt variable everytime you move somewhere. Use this line to do that: alias cd 'chdir \!* ; set prompt = "\! $cwd -> " ; ls -FC' This one also does an ls after cd'ing there. Modify to suit. ------------------------------------------------------------------------------- | Steve DeJarnett | Smart Mailers -> steve@polyslo.CalPoly.EDU | | Computer Systems Lab | Dumb Mailers -> ..!ucbvax!voder!polyslo!steve | | Cal Poly State Univ. |------------------------------------------------| | San Luis Obispo, CA 93407 | BITNET = Because Idiots Type NETwork | -------------------------------------------------------------------------------