zsh: display blue prompt for ssh connections
parent
0b06330ac9
commit
0813f3d3e0
|
@ -103,7 +103,11 @@ then
|
||||||
then COLOR="red"
|
then COLOR="red"
|
||||||
else COLOR="blue"
|
else COLOR="blue"
|
||||||
fi
|
fi
|
||||||
else COLOR="green"
|
else
|
||||||
|
if [ -n "$SSH_CLIENT" ]
|
||||||
|
then COLOR="blue"
|
||||||
|
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%} '
|
||||||
|
|
Loading…
Reference in New Issue