# fswatch

watch for changes in directory

fswatch -o path | xargs -n1 -I{} command

-o batches multitple simutaneous changes into one event -I{} ignores arguments.

brew install fswatch