Skip to content

Instantly share code, notes, and snippets.

@GiovanniFrigo
Last active January 19, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GiovanniFrigo/7e8d133f352b97d18c0b81319fb4c650 to your computer and use it in GitHub Desktop.
Save GiovanniFrigo/7e8d133f352b97d18c0b81319fb4c650 to your computer and use it in GitHub Desktop.
Crontab configuration of my MBP. Let's add some small automation here!
# Delete Screen Shots taken more than an hour ago. Keeps my Desktop clean :)
*/15 * * * * find $HOME/Desktop/Screen\ Shot*.png -mtime +1h -exec rm '{}' \; 2>/dev/null
*/15 * * * * find $HOME/Desktop/Screenshot*.png -mtime +1h -exec rm '{}' \; 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment