fix(zsh): git integration error

This commit is contained in:
Ahmad Ansori Palembani 2024-07-16 08:50:41 +07:00
parent 0fae8aa1e3
commit 68527e4a8b
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -15,7 +15,7 @@ zstyle ':vcs_info:*' enable git
[ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] || return 0
# git status ahead
[ $(git status --porcelain -b | grep '^## [^ ]\+ .*ahead') ] && \
[ ! "$(git status --porcelain -b | grep '^## [^ ]\+ .*ahead')" = "" ] && \
hook_com[unstaged]+='%F{1}⇡%f'
# git untracked