From b9ee35cf0e3520a6beeb0faa7bb4a818b5c9fb8e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 16 Mar 2013 14:45:53 -0400 Subject: [PATCH] Change bg color in remote shells --- zsh/prompt | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/zsh/prompt b/zsh/prompt index 8d9ef0a2..6dd1014f 100644 --- a/zsh/prompt +++ b/zsh/prompt @@ -21,13 +21,14 @@ ZSH_THEME_GIT_PROMPT_CLEAN="" # Left side PROMPT=" " -if [[ -n $SSH_CLIENT ]]; then - PROMPT+="%{$fg[white]%}$(hostname)%{$reset_color%} " -fi - PROMPT+="%{$FX[bold]%}" +if [[ -n $SSH_CLIENT ]]; then + PROMPT+="%{$BG[236]%}" + PROMPT+="%{$fg[white]%}$(hostname)%{$reset_color%} " +else + PROMPT+="%{$BG[234]%}" +fi PROMPT+="%{$fg[cyan]%}" -PROMPT+="%{$BG[234]%}" PROMPT+="$ " PROMPT+="%{$fg[white]%}"