From 7221fb8a32c9d3f4dbefa0491ed3616475da4633 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Wed, 14 Oct 2015 08:23:34 -0700 Subject: [PATCH] Fix "expected a combining operator" regression. See #10 --- fish_prompt.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index cdbac0e..d9c2453 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -322,7 +322,8 @@ 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' ] - if [ (command git ls-files --other --exclude-standard) ] + set new (command git ls-files --other --exclude-standard) + if [ "$new" ] if [ "$theme_avoid_ambiguous_glyphs" = 'yes' ] set new '...' else