From c10d7ea7b423d87f422deae194fe0ef9599ad96a Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 20 Oct 2022 20:51:05 -0500 Subject: [PATCH] trim --- common/fish/prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fish/prompt.fish b/common/fish/prompt.fish index 92f8c5d..55aa1f0 100644 --- a/common/fish/prompt.fish +++ b/common/fish/prompt.fish @@ -66,7 +66,7 @@ function _maybe_git_summary set_color -b normal yellow set cur_sha (git rev-parse --short HEAD 2>/dev/null) if test $status = 0 - set num_changes (git status --porcelain | wc -l) + set num_changes (git status --porcelain | wc -l | string trim) if test $num_changes = 0 set num_changes "✔" else