mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-17 21:30:07 +00:00
These probably have similar bugs
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
This commit is contained in:
parent
f996d2d6ed
commit
ec47f1b583
1 changed files with 3 additions and 3 deletions
|
@ -579,7 +579,7 @@ prompt_context() {
|
|||
content="${POWERLEVEL9K_CONTEXT_TEMPLATE}"
|
||||
|
||||
elif [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]]; then
|
||||
content="$USER"
|
||||
content="$(whoami)"
|
||||
else
|
||||
return
|
||||
fi
|
||||
|
@ -594,7 +594,7 @@ set_default POWERLEVEL9K_USER_TEMPLATE "%n"
|
|||
prompt_user() {
|
||||
local current_state="DEFAULT"
|
||||
typeset -AH user_state
|
||||
if [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]] || [[ "$USER" != "$DEFAULT_USER" ]]; then
|
||||
if [[ "$POWERLEVEL9K_ALWAYS_SHOW_USER" == true ]] || [[ "$(whoami)" != "$DEFAULT_USER" ]]; then
|
||||
if [[ $(print -P "%#") == '#' ]]; then
|
||||
user_state=(
|
||||
"STATE" "ROOT"
|
||||
|
@ -606,7 +606,7 @@ prompt_user() {
|
|||
else
|
||||
user_state=(
|
||||
"STATE" "DEFAULT"
|
||||
"CONTENT" "$USER"
|
||||
"CONTENT" "$(whoami)"
|
||||
"BACKGROUND_COLOR" "${DEFAULT_COLOR}"
|
||||
"FOREGROUND_COLOR" "011"
|
||||
"VISUAL_IDENTIFIER" "USER_ICON"
|
||||
|
|
Loading…
Reference in a new issue