fix: use $USERNAME guaranteed to always be defined in zsh

Fixes #9701
This commit is contained in:
Marc Cornellà committed 2021-03-25 12:08:00 +01:00
1 parent 95a06f3927
commit 02d07f3e3d
15 files changed
+30 -30

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ Y=$fg_no_bold[yellow]
B=$fg_no_bold[blue]
RESET=$reset_color
if [ "$USER" = "root" ]; then
if [ "$USERNAME" = "root" ]; then
PROMPTCOLOR="%{$R%}" PROMPTPREFIX="-!-";
else
PROMPTCOLOR="" PROMPTPREFIX="---";