zsh: display blue prompt for ssh connections
parent
0b06330ac9
commit
0813f3d3e0
|
@ -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="%_> "
|
||||||
|
|
Loading…
Reference in New Issue