From 60e4c86b311c845c57610fa042674292f916791a Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Thu, 31 Oct 2019 21:34:54 +1300 Subject: [PATCH] clear out trash directory as well --- .crontab.d/base | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.crontab.d/base b/.crontab.d/base index 6483028..c686597 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -2,4 +2,4 @@ SHELL=/bin/zsh MAILTO=madduck+crontab 38 4 * * * [[ -d $TMPDIR ]] && echo '- *' >| $TMPDIR/.backup-filter && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(.NDa+1L0,.NDa+28,@NDa+28,N-@) -- rm -- && zargs --no-run-if-empty -- $TMPDIR/**/*(/ND^F) -- rmdir -- -48 4 * * * [[ -d $HOME/.cache ]] && autoload -U zargs && zargs --no-run-if-empty -- $HOME/.cache/$i/**/*(.NDa+1L0,.NDa+14,@NDa+14,N-@) -- rm -- && zargs --no-run-if-empty -- $HOME/.cache/**/*(/ND^F) -- rmdir -- +48 4 * * * for d in $HOME/.cache $HOME/.local/share/Trash; do [[ -d $d ]] || continue && autoload -U zargs && zargs --no-run-if-empty -- $d/**/*(.NDa+1L0,.NDa+14,@NDa+14,N-@) -- rm -- && zargs --no-run-if-empty -- $d/**/*(/ND^F) -- rmdir --; done -- 2.39.5