| ... | ... |
@@ -1,4 +1,6 @@ |
| 1 |
-PROMPT='%n:%{$fg[blue]%}%B%c%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
|
|
| 1 |
+if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi |
|
| 2 |
+ |
|
| 3 |
+PROMPT='%{$fg[$NCOLOR]%}%n%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
|
|
| 2 | 4 |
RPROMPT='[%*]' |
| 3 | 5 |
|
| 4 | 6 |
# git theming |