diff options
Diffstat (limited to 'themes')
-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 |