summaryrefslogtreecommitdiff
path: root/themes/pmcgee.zsh-theme
diff options
context:
space:
mode:
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%}