fsw is a tool for recursively watching the current working directory and running a command when its contents change.
It's integrated with Git, so it won't rerun the command if an ignored file changes.
Why? Well, I quite like the workflow that sbt's tilde (~
) operator provides, and I wanted a reliable mechanism to do the same thing with other tools.
You can find static binaries for Linux and macOS on the Github Releases page.
Alternatively, you can use cargo
to install the tool on any platform that Rust supports.
bash
cargo install fsw
bash
fsw <command> [<arg>]...