mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 13:50:09 +00:00
parent
a9e1d9aa89
commit
fbf4a78acf
1 changed files with 2 additions and 2 deletions
|
@ -14,11 +14,11 @@ eval PR_NO_COLOR="%{$terminfo[sgr0]%}"
|
||||||
eval PR_BOLD="%{$terminfo[bold]%}"
|
eval PR_BOLD="%{$terminfo[bold]%}"
|
||||||
|
|
||||||
# Check the UID
|
# Check the UID
|
||||||
if [[ $UID -ge 1000 ]]; then # normal user
|
if [[ $UID -ne 0 ]]; 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}'
|
eval PR_USER_OP='${PR_GREEN}%#${PR_NO_COLOR}'
|
||||||
local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR'
|
local PR_PROMPT='$PR_NO_COLOR➤ $PR_NO_COLOR'
|
||||||
elif [[ $UID -eq 0 ]]; then # root
|
else # root
|
||||||
eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
|
eval PR_USER='${PR_RED}%n${PR_NO_COLOR}'
|
||||||
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
|
eval PR_USER_OP='${PR_RED}%#${PR_NO_COLOR}'
|
||||||
local PR_PROMPT='$PR_RED➤ $PR_NO_COLOR'
|
local PR_PROMPT='$PR_RED➤ $PR_NO_COLOR'
|
||||||
|
|
Loading…
Reference in a new issue