diff options
author | Evandro Myller <evandromyller@gmail.com> | 2010-01-02 02:51:49 -0300 |
---|---|---|
committer | Evandro Myller <evandromyller@gmail.com> | 2010-01-02 02:51:49 -0300 |
commit | 9658449450685d5adae867a0b79eddc47262f65e (patch) | |
tree | 0cfda5acc70abe6d3c34deed1cbbacb69a8ab474 | |
parent | 5149679f86d54658f8a292f6e220d4edef32769d (diff) | |
download | zsh-9658449450685d5adae867a0b79eddc47262f65e.tar.gz zsh-9658449450685d5adae867a0b79eddc47262f65e.tar.bz2 zsh-9658449450685d5adae867a0b79eddc47262f65e.zip |
improvements to the 'clean' theme
-rw-r--r-- | themes/clean.zsh-theme | 4 |
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 |