Omit +0 and -0 from verbose dirty state

pull/135/head
Justin Hileman 6 years ago
parent 8bd72dbe19
commit 523f7d916a

@ -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
# ==============================

Loading…
Cancel
Save