Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!hsdndev!think.com!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!lll-winken!uunet!mcsun!corton!geocub!lutmann From: lutmann@geocub.UUCP (Patrice LUTMANN) Newsgroups: comp.unix.ultrix Subject: Re: Pretty prompt Message-ID: <3443@geocub.UUCP> Date: 17 Jun 91 12:46:05 GMT References: <1991Jun13.163726.10604@umiami.ir.miami.edu> <962@lhdsy1.chevron.com> Organization: GRECO Programmation du CNRS & LaBRI - FRANCE Lines: 15 In article <962@lhdsy1.chevron.com> yzarn@lhdsy1.chevron.com (Philip Yzarn de Louraille) writes: >In article <1991Jun13.163726.10604@umiami.ir.miami.edu> rfrost@umiami.ir.miami.edu writes: >>How do I get a prompt which will always show the current directory. >> /usr/rfrost> >set prompt="`echo $cwd`>" >alias cd cd \!\* \; set prompt='"`echo $cwd`>"' >alias pushd pushd \!\* \; set prompt='"`echo $cwd`>"' >alias popd popd \!\* \; set prompt='"`echo $cwd`>"' Why not just: alias cd cd \!* \; set prompt='"$cwd>"' alias pushd pushd \!* \; set prompt='"$cwd>"' alias popd popd \!* \; set prompt='"$cwd>"' [Pat]