From 43e2c6a862727b70656af2f95d3839401dc43aa1 Mon Sep 17 00:00:00 2001 From: "martin f. krafft" Date: Sun, 11 Aug 2019 10:52:44 +1200 Subject: [PATCH 1/1] clean up all of ~/.cache --- .crontab.d/base | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.crontab.d/base b/.crontab.d/base index 0f2a3bd..6483028 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -1,6 +1,5 @@ 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 -- -48 4 * * * [[ -d $TMPDIR ]] && autoload -U zargs && zargs --no-run-if-empty -- $TMPDIR/**/*(/ND^F) -- rmdir -- -58 4 * * * for i in thumbnails fontconfig; do [[ -d $HOME/.cache/$i ]] || continue; autoload -U zargs && zargs --no-run-if-empty -- $HOME/.cache/$i/**/*(.NDa+14) -- rm --; done +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 -- -- 2.39.5