Printing Working Directory in CSH (or SH for that matter)
Steve Ginn
sginn at hlthnt.UUCP
Sun Apr 28 04:13:12 AEST 1991
In article <46 at swatty.UUCP> root at swatty.UUCP (Superuser) writes:
Question:
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 is sh...
Try the following in the .cshrc file:
alias setprompt 'set prompt="`pwd` \\!%> "'
setprompt
and then comment out the line set prompt=\!%\
Works for me!
Steve Ginn
More information about the Comp.unix.xenix.sco
mailing list