From 9658449450685d5adae867a0b79eddc47262f65e Mon Sep 17 00:00:00 2001 From: Evandro Myller Date: Sat, 2 Jan 2010 02:51:49 -0300 Subject: [PATCH] improvements to the 'clean' theme --- themes/clean.zsh-theme | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/themes/clean.zsh-theme b/themes/clean.zsh-theme index 0ab0ac0d..d81eeaa6 100644 --- a/themes/clean.zsh-theme +++ b/themes/clean.zsh-theme @@ -1,4 +1,6 @@ -PROMPT='%n:%{$fg[blue]%}%B%c%b%{$reset_color%} $(git_prompt_info)%(!.#.$) ' +if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi + +PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) ' RPROMPT='[%*]' # git theming