Mercurial > dotfiles.old
diff maid/general.rb @ 253:84384c95df95
Add maid rule to clean up tmux resurrect files
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 26 Feb 2015 08:36:58 +0100 |
parents | 1de663077957 |
children |
line wrap: on
line diff
--- a/maid/general.rb Thu Feb 26 08:09:30 2015 +0100 +++ b/maid/general.rb Thu Feb 26 08:36:58 2015 +0100 @@ -38,4 +38,8 @@ rule 'Clean up Mail Downloads' do trash(dir('~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads/*')) end + + rule 'Clean old tmux-resurrect/continuum files' do + dir('~/.tmux/resurrect/*.txt').each { |file| trash(file) if 3.days.since?(created_at(file)) } + end end