report machine name when SSH'd on a server

This commit is contained in:
Santiago Suarez Ordoñez 2012-08-01 11:24:42 -07:00
commit 40cfd9ccae

View file

@ -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