From 16847672c595685e4ea02660229fac4d4bfedcc4 Mon Sep 17 00:00:00 2001 From: Brad Ganley Date: Wed, 24 Dec 2025 23:01:16 -0600 Subject: [PATCH] added duh function --- .bash_functions | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.bash_functions b/.bash_functions index f0c8114..75b12bf 100644 --- a/.bash_functions +++ b/.bash_functions @@ -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 +}