fswatch cheatsheet

fswatch is a CLI tool for watching the filesystem for changes.

Watch a folder and execute a script on any change

fswatch -o ../rant-dom | xargs -n1 ./build_site.sh

Install (macOS)

brew install fswatch