From b1dff8ef68351f10ff2cb925ac8fbf0aaea7f466 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Mon, 26 Oct 2015 07:16:21 -0700 Subject: [PATCH] Prevent false positives for 'untracked' empty directories. Fixes a regression in #13 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 2157d44..ac825a4 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -322,7 +322,7 @@ function __bobthefish_prompt_git -a current_dir -d 'Display the actual git state set -l new '' set -l show_untracked (git config --bool bash.showUntrackedFiles) if [ "$theme_display_git_untracked" != 'no' -a "$show_untracked" != 'false' ] - set new (command git ls-files --other --exclude-standard --directory) + set new (command git ls-files --other --exclude-standard --directory --no-empty-directory) if [ "$new" ] if [ "$theme_avoid_ambiguous_glyphs" = 'yes' ] set new '...'