If you're on mac, you can use fswatch instead:
https://github.com/alandipert/fswatch
It uses Mac APIs to monitor the file system and executes your command when it changes.
https://github.com/alandipert/fswatch
It uses Mac APIs to monitor the file system and executes your command when it changes.