From 523f7d916a80d5105f16db5298047b40248a1e75 Mon Sep 17 00:00:00 2001 From: Justin Hileman Date: Tue, 20 Feb 2018 22:33:51 -0800 Subject: [PATCH] Omit +0 and -0 from verbose dirty state --- fish_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fish_prompt.fish b/fish_prompt.fish index 71ad22a..175fdcc 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 " + echo "$changes " | string replace '+0/' '' | string replace '/-0 ' ' ' end # ==============================