Tagged Questions
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:
...
2
votes
2answers
958 views
Is there a way to push shell config information when SSHing to a host?
I know how to set the GNOME-terminals (or xterms!) prompt to green/red regarding the last exit code:
vi .bashrc
export PROMPT_COMMAND='PS1="`
if [[ \$? = "0" ]];
then echo "\\[\\033[0;32m\\]";
else ...
7
votes
2answers
1k views
How do you make RPROMPT in zsh update itself on every enter?
My RPROMPT is set to display svn info using vcs_info. It reads RPROMPT=${vcs_info_msg_0_}. vcs_info is called using precmd(). However, RPROMPT doesn't update when I change directories. It works only ...