mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-13 03:01:32 +01:00
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:
parent
598a9c6f99
commit
952329c046
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ 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 -ge 500 ]]; 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'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue