Skip to content

Commit

Permalink
Fix AGKOZAK_SHOW_STATUS
Browse files Browse the repository at this point in the history
  • Loading branch information
agkozak committed Oct 20, 2023
1 parent 81d1da0 commit e9daa62
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions agkozak-zsh-prompt.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9daa62

Please sign in to comment.