1
0
Fork 0

Zsh prompt: use $EUID instead if `id`

This commit is contained in:
tastytea 2022-03-23 01:52:26 +01:00
parent 5902d4d020
commit cc55c54e6b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ zsh_theme_colours[minor]="60" # dark violet
zsh_theme_colours[inactive]="236" # grey
[[ -n "${SSH_CONNECTION}" ]] && zsh_theme_colours[prompt]="yellow"
[[ $(id -u) -eq 0 ]] && zsh_theme_colours[prompt]="red"
[[ ${EUID} -eq 0 ]] && zsh_theme_colours[prompt]="red"
# Show username if it is not the default user
local showuser=""