Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!ncar!gatech!usenet.ins.cwru.edu!ncoast!nshore!steve From: steve@nshore.ncoast.org (Stephen J. Walick) Newsgroups: comp.unix.xenix.sco Subject: Re: Printing Working Directory in CSH (or SH for that matter) Message-ID: <1991May1.001454.9035@nshore.ncoast.org> Date: 1 May 91 00:14:54 GMT References: <46@swatty.UUCP> <112@comix.UUCP> Reply-To: steve@nshore.ncoast.org (Stephen J. Walick) Followup-To: comp.unix.xenix.sco Distribution: usa Organization: Nshore Hacking and Salvage Lines: 30 As quoted from <112@comix.UUCP> by jeffl@comix.UUCP (Jeff Liebermann): +--------------- | In article <46@swatty.UUCP> root@swatty.UUCP (Superuser) writes: | >Does anybody know how to set the prompt in csh so that the current | >directory name (eg., /usr/lib/uucp) is printed (kind of like a | >dos $p$g), also can this be done in sh... | | For csh, I use: | | For ksh, I use: | | For sh, I suffer without... +--------------- So far, for 'csh' and 'ksh' users, the question is answered, but some of us (like myself) do 99% of our work in < /bin/sh > -- can anyone come up with a solution for us who are somewhat confined to < /bin/sh >, without having to have to make an alias of something else to change directories, like `` cdd () { cd $*; ... ; } '' , which does work, but is a pain in the neck to remember to execute instead of `` cd '', and does take a bit of processing time?? Thanks to any 'wizards' out there who can come up with an answer to this one! -- Stephen J. Walick, Asst Sysop of the < XBBS > program at NCoast.ORG {uunet|backbone}!ncoast.org!nshore!steve nshore!steve@ncoast.org