added duh function
This commit is contained in:
@@ -88,3 +88,10 @@ function compress_files() {
|
|||||||
zip -r "$1" "${@:2}"
|
zip -r "$1" "${@:2}"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Du to a depth and human readable
|
||||||
|
function duh() {
|
||||||
|
local depth=${1:-1}
|
||||||
|
local path=${2:-"."}
|
||||||
|
du -hx -d "$depth" -- "$path" | sort -h
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user