Mercurial > dotfiles.old
diff maid/general.rb @ 64:1de663077957
Add plugin merginal
author | zegervdv <zegervdv@me.com> |
---|---|
date | Thu, 12 Jun 2014 09:31:54 +0200 |
parents | 625fc94c8e62 |
children | 84384c95df95 |
line wrap: on
line diff
--- a/maid/general.rb Sat Jun 07 23:20:28 2014 +0200 +++ b/maid/general.rb Thu Jun 12 09:31:54 2014 +0200 @@ -29,6 +29,12 @@ end end + rule 'Remove old powerpoints' do + dir('~/Downloads/**/*.pptx?').each do |file| + trash(file) if 3.days.since?(accessed_at(file)) + end + end + rule 'Clean up Mail Downloads' do trash(dir('~/Library/Containers/com.apple.mail/Data/Library/Mail\ Downloads/*')) end