added duh function

This commit is contained in:
Brad Ganley
2025-12-24 23:01:16 -06:00
parent 0b945fe44f
commit 16847672c5

View File

@@ -88,3 +88,10 @@ function compress_files() {
zip -r "$1" "${@:2}"
fi
}
# Du to a depth and human readable
function duh() {
local depth=${1:-1}
local path=${2:-"."}
du -hx -d "$depth" -- "$path" | sort -h
}