From 89c300c329a3498bf1835e4311679683ad65ed8f Mon Sep 17 00:00:00 2001 From: vrtcl1dvoshun Date: Sat, 25 May 2013 14:08:12 -0500 Subject: [PATCH] blah [ticket: X] --- modules/prompt/functions/prompt_garrett_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/prompt/functions/prompt_garrett_setup b/modules/prompt/functions/prompt_garrett_setup index 91b5d1f1..11d2aebb 100644 --- a/modules/prompt/functions/prompt_garrett_setup +++ b/modules/prompt/functions/prompt_garrett_setup @@ -159,7 +159,7 @@ function prompt_garrett_setup { # Check the UID to set prompt color # TODO better Zsh way to determine UID? # ————————————————————————————————————————————————————————————————————— - if [[ $UID -eq 0 ]]; then # root + if [[ "$EUID" = "0" ]] || [[ "$USER" = 'root' ]]; then # root eval user_color='${red}' # set root user color eval prompt_color='${red}' # set root prompt color eval BOLD_prompt_color='${BOLD_red}' # set root prompt BOLD color