From 0813f3d3e03c1cc7c932b746478f8aec7d364765 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 21 Feb 2013 17:16:13 +0100 Subject: [PATCH] zsh: display blue prompt for ssh connections --- zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 0ccb241..81ab383 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -103,7 +103,11 @@ then then COLOR="red" else COLOR="blue" fi -else COLOR="green" +else + if [ -n "$SSH_CLIENT" ] + then COLOR="blue" + else COLOR="green" + fi fi export PS1='%m%{$fg[$COLOR]%}:%{$reset_color%}%~${vcs_info_msg_0_}%{$fg[$COLOR]%}%#%{$reset_color%} '