X-Git-Url: https://git.madduck.net/etc/crontab.git/blobdiff_plain/600c7f0c8d5ca24d5664eabdcb00aa5535be2058..60e4c86b311c845c57610fa042674292f916791a:/.crontab.d/base diff --git a/.crontab.d/base b/.crontab.d/base index 74e13c4..c686597 100644 --- a/.crontab.d/base +++ b/.crontab.d/base @@ -1,5 +1,5 @@ SHELL=/bin/zsh MAILTO=madduck+crontab -38 4 * * * [[ -d $TMPDIR ]] && : >| $TMPDIR/.nobackup && 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 -- +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 * * * 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