From 603ef440c5fd4b366c70910391332ac93a9bdb26 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 0ab0ac0..d81eeaa 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