directory inclusion in prompt
Steve DeJarnett
steve at polyslo.CalPoly.EDU
Mon May 15 15:33:36 AEST 1989
In article <May.14.12.32.41.1989.26428 at galaxy.rutgers.edu> yadav at andromeda.rutgers.edu.UUCP (Ashish Yadav) writes:
>Since folks have been talking about tcsh, I would like to know how I could
>get the current directory to be 'echo'ed in my prompt. We have tcsh running
>on a 9810x, just incase !!
You can set your prompt, but it won't update when you move around.
To get this, you need to change 'cd' (and popd and pushd) to reevaluate your
$prompt variable everytime you move somewhere. Use this line to do that:
alias cd 'chdir \!* ; set prompt = "\! $cwd -> " ; ls -FC'
This one also does an ls after cd'ing there.
Modify to suit.
-------------------------------------------------------------------------------
| Steve DeJarnett | Smart Mailers -> steve at polyslo.CalPoly.EDU |
| Computer Systems Lab | Dumb Mailers -> ..!ucbvax!voder!polyslo!steve |
| Cal Poly State Univ. |------------------------------------------------|
| San Luis Obispo, CA 93407 | BITNET = Because Idiots Type NETwork |
-------------------------------------------------------------------------------
More information about the Comp.sys.pyramid
mailing list