Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!samsung!think!snorkelwacker!bloom-beacon!bu.edu!bu-cs!lectroid!cloud9!jjmhome!m2c!umvlsi!umaecs!satam From: satam@ecs.umass.edu (Kirtikumar Satam) Newsgroups: comp.unix.wizards Subject: Re: RE: pwd in your PS1 Message-ID: <8790.259b3142@ecs.umass.edu> Date: 29 Dec 89 09:41:22 GMT References: <21894@adm.BRL.MIL> Lines: 24 Inserting the following three aliases will help achieve the same effect. Note that this is only for csh. This part of code was once posted by someone in comp.unix.questions. Also, if you want full path to be displyed, then change {cwd:t} to {cwd}. The "\\!%" at the end is used to indicate the history command number. cwd= predefined shell variable which gets set to the Current Working Directory. ------------------------------------------------------------ alias cd 'chdir \!* && set prompt="${cwd:t}_\\!% "' alias pushd 'pushd \!* && set prompt="${cwd:t}_\\!% "' alias popd 'popd \!* && set prompt="${cwd:t}_\\!% "' ------------------------------------------------------------- Hope this helps. Thanks. -satam ------------------------------------------------------------------------ Kirtikumar "Mumbaichaa" Satam INTERNET : satam@ecs.umass.edu BITNET : satam@umaecs.bitnet 217 Northwood Apts, Sunderland, MA 01375 Tel# 413-665-3222 ------------------------------------------------------------------------