Printing Working Directory in CSH (or SH for that matter)
Stephen J. Walick
steve at nshore.ncoast.org
Wed May 1 10:14:54 AEST 1991
As quoted from <112 at comix.UUCP> by jeffl at comix.UUCP (Jeff Liebermann):
+---------------
| In article <46 at swatty.UUCP> root at 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 at ncoast.org
More information about the Comp.unix.xenix.sco
mailing list