From e9daa6276c270749ca76cdb2bee3faf5bec664a5 Mon Sep 17 00:00:00 2001 From: Alexandros Kozak Date: Fri, 20 Oct 2023 12:06:50 -0700 Subject: [PATCH] Fix AGKOZAK_SHOW_STATUS --- agkozak-zsh-prompt.plugin.zsh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/agkozak-zsh-prompt.plugin.zsh b/agkozak-zsh-prompt.plugin.zsh index 855aba8..1dfae4a 100644 --- a/agkozak-zsh-prompt.plugin.zsh +++ b/agkozak-zsh-prompt.plugin.zsh @@ -428,12 +428,11 @@ _agkozak_branch_status() { if [[ -n $branch ]]; then local git_status symbols i=1 k - if (( ${AGKOZAK_SHOW_STASH:-1} )); then - if is-at-least 2.14 $AGKOZAK_GIT_VERSION; then - git_status="$(LC_ALL=C GIT_OPTIONAL_LOCKS=0 command git status --show-stash 2>&1)" - else - git_status="$(LC_ALL=C GIT_OPTIONAL_LOCKS=0 command git status 2>&1)" - fi + if is-at-least 2.14 $AGKOZAK_GIT_VERSION && + (( ${AGKOZAK_SHOW_STASH:-1} )); then + git_status="$(LC_ALL=C GIT_OPTIONAL_LOCKS=0 command git status --show-stash 2>&1)" + else + git_status="$(LC_ALL=C GIT_OPTIONAL_LOCKS=0 command git status 2>&1)" fi typeset -A messages