New backup 2024-04-17 15:00:02

This commit is contained in:
Penelope Gwen 2024-04-17 15:00:02 -06:00
parent ff5f5fde54
commit 9d3cb63eaf

View file

@ -32,7 +32,7 @@ alias o="open "
#alias find_largest_files="du -h -x -s -- * | sort -r -h | head -20" #alias find_largest_files="du -h -x -s -- * | sort -r -h | head -20"
sort_filesizes() { sort_filesizes() {
[ -z ${1} ] && local dir="." || local dir="${1}" [ -z ${1} ] && local dir="." || local dir="${1}"
du -h --max-depth=1 "$( realpath ${dir} )" | sort --human-numeric-sort du -ah --max-depth=1 "$( realpath ${dir} )" | sort --human-numeric-sort
} }
#User Env Vars #User Env Vars