Sort the cleanup by filesize.

This commit is contained in:
2025-10-09 06:59:41 -07:00
parent 130b243be3
commit f7c321bf23

View File

@@ -292,7 +292,7 @@
cd $dir
dir="`pwd`"
echo "Removing '.trashed*' files in '$dir'."
find "$dir" -name ".trashed*" -exec du -h {} \; -delete
find "$dir" -name ".trashed*" -exec du -h {} \; -delete | sort -h
}
alias trashed-cleanup="clean-trashed"
alias trashed-clean="clean-trashed"