Browse Source

improvements to the 'clean' theme

Evandro Myller 14 years ago
parent
commit
9658449450
1 changed files with 3 additions and 1 deletions
  1. 3 1
      themes/clean.zsh-theme

+ 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='[%*]'
 RPROMPT='[%*]'
 
 
 # git theming
 # git theming