Browse code

improvements to the 'clean' theme

Evandro Myller authored on 02/01/2010 at 05:51:49
Showing 1 changed files
... ...
@@ -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