fix(zsh): git integration error
This commit is contained in:
parent
0fae8aa1e3
commit
68527e4a8b
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ zstyle ':vcs_info:*' enable git
|
||||||
[ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] || return 0
|
[ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] || return 0
|
||||||
|
|
||||||
# git status ahead
|
# git status ahead
|
||||||
[ $(git status --porcelain -b | grep '^## [^ ]\+ .*ahead') ] && \
|
[ ! "$(git status --porcelain -b | grep '^## [^ ]\+ .*ahead')" = "" ] && \
|
||||||
hook_com[unstaged]+='%F{1}⇡%f'
|
hook_com[unstaged]+='%F{1}⇡%f'
|
||||||
|
|
||||||
# git untracked
|
# git untracked
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue