chore(shell): add custom command-path helper

This commit is contained in:
Jim Myhrberg
2024-06-06 18:33:38 +01:00
parent 12b5ecee91
commit d9cb73260e
8 changed files with 16 additions and 12 deletions

View File

@@ -10,7 +10,7 @@ git-largest-objects() {
sed -n 's/^blob //p' |
sort --numeric-sort --key=2 |
cut -c 1-12,41- |
$(command -v gnumfmt || echo numfmt) \
$(command-path gnumfmt || echo numfmt) \
--field=2 \
--to=iec-i \
--suffix=B \