Monitor directory for file changes and automatically run commands
Monitor a directory for changes and run a shell command
fswatch$ fswatch -o . | xargs -n1 -I{} npm test$ fswatch -o src | xargs -n1 -I{} npm restart$ fswatch -o docs/*.md | xargs -n1 -I{} markdown {} -o {}.html$ fswatch src include | make build$ fswatch -o . | xargs -n1 -I{} rsync -av . user@host:/backup/