1
vote
0answers
42 views

change prompt formatting based on cwd

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 ...
2
votes
0answers
145 views

assigning a multiline variable (tcsh prompt) to another

For tcsh, I have a prompt that is multiline: set prompt = "%/\\ %n@%m[%h]% " This shows the cwd on one line and then the user/host on second line. However, with this, I cannot make a copy of that: ...
1
vote
1answer
95 views

Printing evaluated prompt placeholders to screen

Is there a way to print interpreted PS1 variable placeholders to console? Something like $ echo `%u` for printing a username or $ echo `%h` for printing a host. I do know about environment ...
3
votes
1answer
807 views

How to make my Linux tcsh prompt bold?

Greeting all, I am attempting to make my Linux tcsh prompt bold. However I'm failing miserably. I know about escape codes and I can successfully make echo'ed output bold, but I can't seem to do it ...