From 40cfd9ccae05ccdbc192b084c69a2a653d39f450 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20Suarez=20Ordo=C3=B1ez?= Date: Wed, 1 Aug 2012 11:24:42 -0700 Subject: [PATCH] report machine name when SSH'd on a server --- themes/santiycr.zsh-theme | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/themes/santiycr.zsh-theme b/themes/santiycr.zsh-theme index 2f8f0818b..e2e15f837 100644 --- a/themes/santiycr.zsh-theme +++ b/themes/santiycr.zsh-theme @@ -1,4 +1,8 @@ + PROMPT='%{$fg_no_bold[cyan]%}%n %{$fg_no_bold[yellow]%}%3~%{$reset_color%} %{$fg_no_bold[magenta]%}• %{$reset_color%}' +if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ] || [ -n "$SSH_CONNECTION" ]; then + PROMPT="%{$fg[yellow]%}%m%{$reset_color%} $PROMPT" +fi RPROMPT='$(git_prompt_info) %{$reset_color%}[%*]' # git theming