fix(zsh): Don't detect empty untracked dir
This commit is contained in:
parent
2ff100e3bf
commit
93b32a8f43
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ zstyle ':vcs_info:*' enable git
|
||||||
|
|
||||||
# git untracked
|
# git untracked
|
||||||
if [ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] && \
|
if [ $(git rev-parse --is-inside-work-tree 2> /dev/null) = 'true' ] && \
|
||||||
[ $(git ls-files --other --directory --exclude-standard | sed q | wc -l | tr -d ' ') = 1 ] ; then
|
[ $(git ls-files --other --directory --exclude-standard --no-empty-directory | sed q | wc -l | tr -d ' ') = 1 ] ; then
|
||||||
hook_com[unstaged]+='%F{1}?%f'
|
hook_com[unstaged]+='%F{1}?%f'
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue