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