I use tcsh. I'd like to have my prompt formatting (coloring/highlighting) change based on what directory I'm in.
Namely, if I'm in one of "my" directories (my username in the full directory path is a good indication), then it should have normal appearance. But if I'm in someone else's directory (I do a lot of support and
cd to others' working areas), then I want the prompt to look clearly different.
This is to remind me to not type impolite commands in others' directories. (think
make clobber or
p4 sync, etc.)
I'm not enough of a shell hacker to know how to do this.