Sort the cleanup by filesize.
This commit is contained in:
@@ -292,7 +292,7 @@
|
|||||||
cd $dir
|
cd $dir
|
||||||
dir="`pwd`"
|
dir="`pwd`"
|
||||||
echo "Removing '.trashed*' files in '$dir'."
|
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-cleanup="clean-trashed"
|
||||||
alias trashed-clean="clean-trashed"
|
alias trashed-clean="clean-trashed"
|
||||||
|
Reference in New Issue
Block a user