mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
fixing command color on certain terminals, e.g. through putty.
This commit is contained in:
parent
d1191418f6
commit
a0660f68f1
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue