Stream paths
Print changed paths as they arrive, or use null-delimited output for shell-safe pipelines.
Native file change events from one command
fswatch streams file system changes from the best backend
available on each operating system, with filters, batching, custom
output formats, and a portable fallback.
$ fswatch -o src include \
| xargs -n1 -I{} make test
1
1
1
Use the same command line on build scripts, editors, automation, and
developer workflows while fswatch chooses the platform
monitor that fits the host.
Print changed paths as they arrive, or use null-delimited output for shell-safe pipelines.
Use count mode to rebuild, rerun tests, or trigger one command per change batch.
Use legacy filters, conjunctive include-minus-exclude filters, event filters, or traversal pruning before your automation sees noise.
Install from your package manager when available, or build a release tarball when you need full control over the target system.
$ brew install fswatch
$ fswatch -r ~/project
/Users/me/project/src/main.cpp
/Users/me/project/include/main.hpp
Read the 1.20.1 manual from the GitHub release assets, or browse the release tag for source documentation.
Report issues, read release notes, and inspect the C, C++, and command-line implementation on GitHub.