How to redefine PROMPT to show current working directory
SQUID 6 on the DARK side
hooverm at sysjj.mdcbbs.com
Fri Nov 2 00:13:28 AEST 1990
I've set up an alias as shown below:
alias cd "cd \!*; set prompt = $LOGNAME-`hostname`'${cwd}%' "
When I do a cd , I expect to see my current working directory. This works
fine until I drop down into a subdir. What I expect to see is my FULL path
name all the way down to the subdir like this:
hooverm-ntscam1/home/ntscam/hoover/work%
Instead I get this, no matter where I am:
hooverm-ntscam1/home/ntscam/hoover%
I'm sure its simple, but I can't see the woods for the trees.
Mark <o===6
More information about the Comp.unix.questions
mailing list