summaryrefslogtreecommitdiff
path: root/themes/pmcgee.zsh-theme
diff options
context:
space:
mode:
authorFredrik Appelberg <fredrik.appelberg@gmail.com>2011-02-16 10:40:57 +0100
committerFredrik Appelberg <fredrik.appelberg@gmail.com>2011-02-16 10:40:57 +0100
commitbbde258141acef4174f4e3184517af6705fd5939 (patch)
treeda5e04aff3efd1a533ed8156c4d267d9e09502ef /themes/pmcgee.zsh-theme
parent792e50c917b7c854fbcadbce10a895ab7fbaa7ec (diff)
parent01b0366f3e27cf30f3882870100f14625fc267d1 (diff)
downloadzsh-bbde258141acef4174f4e3184517af6705fd5939.tar.gz
zsh-bbde258141acef4174f4e3184517af6705fd5939.tar.bz2
zsh-bbde258141acef4174f4e3184517af6705fd5939.zip
Merge branch 'master' of git://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'themes/pmcgee.zsh-theme')
-rw-r--r--themes/pmcgee.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/pmcgee.zsh-theme b/themes/pmcgee.zsh-theme
index 4eb54df5b..e4e45c71a 100644
--- a/themes/pmcgee.zsh-theme
+++ b/themes/pmcgee.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@%m%b%{$reset_color%} %{$fg[white]%}%B${PWD/#$HOME/~}%b%{$reset_color%}