From 1120ca36a3ff8579caf317fd566b458bbf835ad7 Mon Sep 17 00:00:00 2001 From: Brian Hong Date: Tue, 25 Jul 2017 17:44:04 -0400 Subject: [PATCH] Set color to red if root in gallifrey theme --- themes/gallifrey.zsh-theme | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/gallifrey.zsh-theme b/themes/gallifrey.zsh-theme index fce7cb92..f2ee596a 100644 --- a/themes/gallifrey.zsh-theme +++ b/themes/gallifrey.zsh-theme @@ -1,7 +1,8 @@ # ZSH Theme - Preview: http://img.skitch.com/20091113-qqtd3j8xinysujg5ugrsbr7x1y.jpg local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})" +local host_color="%(!.%{$fg[red]%}.%{$fg[green]%})" -PROMPT='%{$fg[green]%}%m%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b ' +PROMPT='${host_color}%m%{$reset_color%} %2~ $(git_prompt_info)%{$reset_color%}%B»%b ' RPS1="${return_code}" ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}‹"