Permalink
Browse files

improvements to the 'clean' theme

  • Loading branch information...
1 parent 5149679 commit 9658449450685d5adae867a0b79eddc47262f65e Evandro Myller committed Jan 2, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 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

0 comments on commit 9658449

Please sign in to comment.