fix: use whoami instead of $USER

This commit is contained in:
2023-01-07 14:15:07 +01:00
parent 8aa165b576
commit 5d2b51d868

2
zshrc
View File

@@ -50,7 +50,7 @@ PATH_COLOR="cyan"
PATH_INPUT_SEPERATOR_COLOR="green" PATH_INPUT_SEPERATOR_COLOR="green"
## different color for root ## ## different color for root ##
if [[ $USER == "root" ]]; then if [[ $(whoami) == "root" ]]; then
USER_COLOR="red" USER_COLOR="red"
HOST_COLOR="red" HOST_COLOR="red"
SEPERATOR_LINE_COLOR="red" SEPERATOR_LINE_COLOR="red"