From 11786eab9bdc1be4478c218ced514dc9b51891b9 Mon Sep 17 00:00:00 2001 From: Philip Fulgham Date: Thu, 22 Feb 2018 19:59:20 -0500 Subject: [PATCH] Fix issue with filtering out +0/-0 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index be4ee2a..ad6032e 100644 --- a/fish_prompt.fish +++ b/fish_prompt.fish @@ -244,7 +244,7 @@ function __bobthefish_git_dirty_verbose -S -d 'Print a more verbose dirty state set -l changes (command git diff --numstat | awk '{ added += $1; removed += $2 } END { print "+" added "/-" removed }') or return - echo "$changes " | string replace '+0/' '' | string replace '/-0 ' ' ' + echo "$changes " | string replace '+0/-0 ' '' | string replace '+0/' '' | string replace '/-0 ' ' ' end # ==============================