From 93b32a8f43aec9b92771b63fe78114ea8d67854e Mon Sep 17 00:00:00 2001 From: Ahmad Ansori Palembani Date: Mon, 15 Jul 2024 08:35:22 +0700 Subject: [PATCH] fix(zsh): Don't detect empty untracked dir --- .config/zsh/include/theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }