diff --git a/.config/zsh/include/theme b/.config/zsh/include/theme index 26e4a63..679a687 100644 --- a/.config/zsh/include/theme +++ b/.config/zsh/include/theme @@ -18,7 +18,7 @@ zstyle ':vcs_info:*' enable git # git untracked 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' fi }