From 348666beaf8520d39fe639637c02786b589ebc52 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Sat, 24 Feb 2018 10:29:21 -0800 Subject: [PATCH] Better +/-0 filtering Fixes #135 --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index be4ee2a..67b38c9 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 -r '(\+0/(-0)?|/-0)' '' end # ==============================