Normal user account UIDs start at 500 on OS X, RHEL, etc- updating so the zsh prompt for these doesn't leave out critical info

This commit is contained in:
Adam Hooker 2013-09-11 15:57:39 -07:00 committed by Adam Hooker
commit 952329c046

View file

@ -14,7 +14,7 @@ eval PR_NO_COLOR="%{$terminfo[sgr0]%}"
eval PR_BOLD="%{$terminfo[bold]%}"
# Check the UID
if [[ $UID -ge 1000 ]]; then # normal user
if [[ $UID -ge 500 ]]; then # normal user
eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR'