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
@@ -88,7 +88,7 @@ prompt_end() {
# Context: user@hostname (who am I and where am I)
prompt_context() {
if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
if [[ "$USERNAME" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then
prompt_segment black default "%(!.%{%F{yellow}%}.)%n@%m"
fi
}