I currently use Hazel to instantly commit any changes I make to all the curated lists I maintain. As well as CSV files of Web Searches and Ask Create Share.
I also automate committing the README of this my macOS repo & iOS repo as I want to instantly push any changes I make.
Since I want to keep my macOS repo always updated, I made a macro to open the README file in Sublime Text so I can quickly make a change, save and the change will instantly be committed with readme: update
message.
The Hazel rule for this is simple and looks like this:
With this as the shell script:
Here it is in code:
git add README.md
git commit -m "readme: update"
git push
I use prefixes for most files. This allows me to write some great rules for my Downloads folder that will file the files where I want them to be based on the prefix.
Here is one example of such rule:
It checks if the file is a PDF file, and has its name starting with r.
, it will automatically move the file to my ~/Documents/papers
directory synced with iCloud. This rules won't automatically work for you but you can take ideas from some of these rules.
There are also rules I made that will automatically trash any opened .alfredworkflow
files as I never want to keep them hanging after I opened the newly downloaded workflow in Alfred Preferences.
I sync all my Hazel rules with Dropbox.