Mercurial > dotfiles.old
comparison 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 |
comparison
equal
deleted
inserted
replaced
252:f0d3b37101c0 | 253:84384c95df95 |
---|---|
36 end | 36 end |
37 | 37 |
38 rule 'Clean up Mail Downloads' do | 38 rule 'Clean up Mail Downloads' do |
39 trash(dir('~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads/*')) | 39 trash(dir('~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads/*')) |
40 end | 40 end |
41 | |
42 rule 'Clean old tmux-resurrect/continuum files' do | |
43 dir('~/.tmux/resurrect/*.txt').each { |file| trash(file) if 3.days.since?(created_at(file)) } | |
44 end | |
41 end | 45 end |