Skip to content

Commit

Permalink
Add comments to the cleanup script
Browse files Browse the repository at this point in the history
  • Loading branch information
adarsh committed Dec 30, 2016
1 parent 5267d47 commit 4852319
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/clean_downloads
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
#!/usr/bin/env zsh

# Don't log output if the glob doesn't match anything
# http://unix.stackexchange.com/a/26825/62804
setopt null_glob

# Move folders and files with an mtime (modification) older than 1 week to the
# trash folder.
# http://www.zsh.org/mla/workers/2011/msg01399.html
mv ~/Downloads/**/*(.mh+168) ~/.Trash/

0 comments on commit 4852319

Please sign in to comment.