mirror of
https://github.com/oh-my-fish/theme-bobthefish.git
synced 2025-06-13 13:03:54 +00:00
Fix issue with filtering out +0/-0
This commit is contained in:
parent
e3d4545f74
commit
11786eab9b
@ -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 }')
|
set -l changes (command git diff --numstat | awk '{ added += $1; removed += $2 } END { print "+" added "/-" removed }')
|
||||||
or return
|
or return
|
||||||
|
|
||||||
echo "$changes " | string replace '+0/' '' | string replace '/-0 ' ' '
|
echo "$changes " | string replace '+0/-0 ' '' | string replace '+0/' '' | string replace '/-0 ' ' '
|
||||||
end
|
end
|
||||||
|
|
||||||
# ==============================
|
# ==============================
|
||||||
|
Loading…
Reference in New Issue
Block a user