UID too high on mac; not used anyway

This commit is contained in:
Andrew Tomaka 2014-07-05 00:35:26 -04:00
parent 67dfeb0b6f
commit 833fb79b44

View file

@ -13,14 +13,8 @@ done
eval PR_NO_COLOR="%{$terminfo[sgr0]%}" eval PR_NO_COLOR="%{$terminfo[sgr0]%}"
eval PR_BOLD="%{$terminfo[bold]%}" eval PR_BOLD="%{$terminfo[bold]%}"
# Check the UID # Show username
if [[ $UID -ge 1000 ]]; then # normal user eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}'
eval PR_USER='${PR_GREEN}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
elif [[ $UID -eq 0 ]]; then # root
eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
fi
# Check if we are on SSH or not # Check if we are on SSH or not
if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then if [[ -n "$SSH_CLIENT" || -n "$SSH2_CLIENT" ]]; then