fixing command color on certain terminals, e.g. through putty.

This commit is contained in:
Andrew vonderLuft 2012-11-07 12:49:37 -08:00
commit a0660f68f1

View file

@ -16,10 +16,10 @@ eval PR_USER='${PR_CYAN}%n${PR_NO_COLOR}'
# Check the UID
if [[ $UID -ge 10 ]]; then # normal user
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
local PR_PROMPT='$PR_GREEN%%$PR_NO_COLOR'
local PR_PROMPT='$PR_GREEN%%%{$reset_color%}'
elif [[ $UID -eq 0 ]]; then # root
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
local PR_PROMPT='$PR_RED#$PR_NO_COLOR'
local PR_PROMPT='$PR_RED#%{$reset_color%}'
fi
# Check if we are on SSH or not