From a654a7747cb1878ddd5d7fc137f5705264ce5dc8 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 23 Aug 2020 19:49:25 -0700 Subject: [PATCH] Fix duf --- dotfiles/zshrc.d/usage.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotfiles/zshrc.d/usage.zsh b/dotfiles/zshrc.d/usage.zsh index cb6804b..d9f1513 100644 --- a/dotfiles/zshrc.d/usage.zsh +++ b/dotfiles/zshrc.d/usage.zsh @@ -1,3 +1,3 @@ function duf { - du -sk "$@" | sort -n | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}t${fname}"; break; fi; size=$((size/1024)); done; done + du -sk "$@" | sort -n | while read size fname; do for unit in K M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done }