summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorEvandro Myller <evandromyller@gmail.com>2010-01-02 02:51:49 -0300
committerEvandro Myller <evandromyller@gmail.com>2010-01-02 02:51:49 -0300
commit9658449450685d5adae867a0b79eddc47262f65e (patch)
tree0cfda5acc70abe6d3c34deed1cbbacb69a8ab474 /themes
parent5149679f86d54658f8a292f6e220d4edef32769d (diff)
downloadzsh-9658449450685d5adae867a0b79eddc47262f65e.tar.gz
zsh-9658449450685d5adae867a0b79eddc47262f65e.tar.bz2
zsh-9658449450685d5adae867a0b79eddc47262f65e.zip
improvements to the 'clean' theme
Diffstat (limited to 'themes')
-rw-r--r--themes/clean.zsh-theme4
1 files changed, 3 insertions, 1 deletions
diff --git a/themes/clean.zsh-theme b/themes/clean.zsh-theme
index 0ab0ac0de..d81eeaa63 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