X-Git-Url: https://git.madduck.net/etc/crontab.git/blobdiff_plain/0590b8b9c612a70e3bf4f2d13af943f01d844498..54b8a2f6674c2003118bd4a4dd252be156646db0:/.crontab.d/base?ds=inline 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 --