M root/etc/skel/.profile => root/etc/skel/.profile +2 -0
@@ 5,3 5,5 @@
# Allow people in group to read, others nothing
umask 027
+# Delete files after 48 hours.
+find $HOME/.trash/ -maxdepth 1 -ctime +1 2>/dev/null | xargs /bin/rm -rf 2>/dev/null
M root/usr/local/bin/saferm => root/usr/local/bin/saferm +3 -3
@@ 9,10 9,10 @@
# The idea is to `alias rm='saferm'`
#
# Use something like
-# 0 * * * * find $HOME/.trash/ -prune -ctime +1 | xargs command rm -rf
-# in your user crontab to really delete files after 48 hours.
+# `find $HOME/.trash/ -maxdepth 1 -ctime +1 2>/dev/null | xargs /bin/rm -rf 2>/dev/null`
+# in your user crontab or .profile file to really delete files after 48 hours.
#
-# Copyright (c) 2020 Felix Freeman <sir@hacktivista.com>
+# Copyright (c) 2020-2023 Felix Freeman <libsys@hacktivista.org>
#
# This software is licensed under the 'MIT No Attribution' license terms. I
# don't want attribution nor exclusive rights over it, but I'd love that you