summaryrefslogtreecommitdiff
path: root/themes/philips.zsh-theme
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2011-01-14 06:40:09 -0800
committerRobby Russell <robby@planetargon.com>2011-01-14 06:40:09 -0800
commit192ea1424adcfbcb390fc482df44de85f1a6dbeb (patch)
treefc56aace4049843838631e89be41371bfeabdcc0 /themes/philips.zsh-theme
parent7bf6adcd4861c1f7c4638ddcc01911c79b8b9230 (diff)
parent8d2b9d10e5105f9e0af0700e427e0567011ab45b (diff)
downloadzsh-192ea1424adcfbcb390fc482df44de85f1a6dbeb.tar.gz
zsh-192ea1424adcfbcb390fc482df44de85f1a6dbeb.tar.bz2
zsh-192ea1424adcfbcb390fc482df44de85f1a6dbeb.zip
Merge branch 'master' of https://github.com/sunaku/oh-my-zsh
Diffstat (limited to 'themes/philips.zsh-theme')
-rw-r--r--themes/philips.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/philips.zsh-theme b/themes/philips.zsh-theme
index fa7c59035..e7ea51a2f 100644
--- a/themes/philips.zsh-theme
+++ b/themes/philips.zsh-theme
@@ -1,4 +1,4 @@
-if [ "$(whoami)" = "root" ]; then NCOLOR="red"; else NCOLOR="green"; fi
+if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(git_prompt_info)%(!.#.$) '
RPROMPT='[%*]'