diff options
author | James Smith <james@loopj.com> | 2012-09-20 19:35:09 -0700 |
---|---|---|
committer | James Smith <james@loopj.com> | 2012-09-20 19:35:09 -0700 |
commit | 00bff0a9963d4b36e6afc968449781c727bfef3b (patch) | |
tree | e5059f108ab057d763cf4b3c0428130ab0533d14 | |
parent | 6c13721f553140d6cb136377c51eb55a281c5f17 (diff) | |
download | zsh-00bff0a9963d4b36e6afc968449781c727bfef3b.tar.gz zsh-00bff0a9963d4b36e6afc968449781c727bfef3b.tar.bz2 zsh-00bff0a9963d4b36e6afc968449781c727bfef3b.zip |
Red prompt for remote hosts
-rw-r--r-- | themes/intheloop.zsh-theme | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/themes/intheloop.zsh-theme b/themes/intheloop.zsh-theme index c4736422d..85b4a4d95 100644 --- a/themes/intheloop.zsh-theme +++ b/themes/intheloop.zsh-theme @@ -3,10 +3,16 @@ local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}" +local host_color="green" +if [ -n "$SSH_CLIENT" ]; then + local host_color="red" +fi + PROMPT=' -%{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[green]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status) +%{$fg_bold[grey]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[grey]%}]%{$reset_color%} %{$fg_bold[blue]%}%10c%{$reset_color%} $(git_prompt_info) $(git_remote_status) %{$fg_bold[cyan]%}❯%{$reset_color%} ' + RPROMPT='${return_status}%{$reset_color%}' ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[grey]%}(%{$fg[red]%}" |