summaryrefslogtreecommitdiff
path: root/themes/clean.zsh-theme
diff options
context:
space:
mode:
authorRoman Kamyk <roman.kamyk@gmail.com>2011-02-05 11:48:46 +0100
committerRoman Kamyk <roman.kamyk@gmail.com>2011-02-05 11:48:46 +0100
commit3e260a9ef63ed8e73650c72049002e6f9edd0dc9 (patch)
treeff50ccfcc118375e11b5537bf08c9b8ad8edfe53 /themes/clean.zsh-theme
parent57e0b57434eb7f3b7d0fe0ca4849478477404e43 (diff)
parent01b0366f3e27cf30f3882870100f14625fc267d1 (diff)
downloadzsh-3e260a9ef63ed8e73650c72049002e6f9edd0dc9.tar.gz
zsh-3e260a9ef63ed8e73650c72049002e6f9edd0dc9.tar.bz2
zsh-3e260a9ef63ed8e73650c72049002e6f9edd0dc9.zip
Merge branch 'master' of http://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/clean.zsh-theme')
-rw-r--r--themes/clean.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/clean.zsh-theme b/themes/clean.zsh-theme
index 95f532a82..7ee29cb8c 100644
--- a/themes/clean.zsh-theme
+++ b/themes/clean.zsh-theme
@@ -1,4 +1,4 @@
-if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="white"; fi
+if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="white"; fi
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
RPROMPT='[%*]'