Honor PS1_GIT for hawolex

This commit is contained in:
2026-01-24 14:09:59 +00:00
parent 5ed49cc54c
commit 84336c0a7b
2 changed files with 4 additions and 2 deletions

View File

@@ -641,7 +641,8 @@ ${G_Z2_BG}${G_Z2_FG} ${HOST_PART}${PATH_SEP}${G_PATH_FG}${PATH_PART}${G_END_PAD}
local H_LEFT_FG="\[\e[38;5;54m\]"
local H_RIGHT_FG="\[\e[38;5;31m\]"
local H_GIT=""
if [[ "$__PS1_GIT" == "1" ]]; then
local H_GIT_ON="${PS1_GIT:-$__PS1_GIT}"
if [[ "$H_GIT_ON" == "1" ]]; then
export GIT_PS1_SHOWDIRTYSTATE=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWUNTRACKEDFILES=1