From 5d2b51d86860428292140fb09e87be477e2142e2 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 7 Jan 2023 14:15:07 +0100 Subject: [PATCH] fix: use whoami instead of $USER --- zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zshrc b/zshrc index dc24aff..e21b980 100644 --- a/zshrc +++ b/zshrc @@ -50,7 +50,7 @@ PATH_COLOR="cyan" PATH_INPUT_SEPERATOR_COLOR="green" ## different color for root ## -if [[ $USER == "root" ]]; then +if [[ $(whoami) == "root" ]]; then USER_COLOR="red" HOST_COLOR="red" SEPERATOR_LINE_COLOR="red"