zsh: display blue prompt for ssh connections

master
Guillaume DOTT 2013-02-21 17:16:13 +01:00
parent 0b06330ac9
commit 0813f3d3e0
1 changed files with 5 additions and 1 deletions

View File

@ -103,8 +103,12 @@ then
then COLOR="red" then COLOR="red"
else COLOR="blue" else COLOR="blue"
fi fi
else
if [ -n "$SSH_CLIENT" ]
then COLOR="blue"
else COLOR="green" else COLOR="green"
fi fi
fi
export PS1='%m%{$fg[$COLOR]%}:%{$reset_color%}%~${vcs_info_msg_0_}%{$fg[$COLOR]%}%#%{$reset_color%} ' export PS1='%m%{$fg[$COLOR]%}:%{$reset_color%}%~${vcs_info_msg_0_}%{$fg[$COLOR]%}%#%{$reset_color%} '
export PS2="%_> " export PS2="%_> "