watch <executable> [..args]
Linux executable watcher and runner:
-
Runs the executable (looks in PATH or use relative or absolute path).
-
On file change sends SIGTERM to process and waits for exit then starts it again.
git clone https://github.com/e3dio/watch.zig
cd watch.zig
zig build -p ~/.local
When developing a project you can build and watch the src files:
zig build --watch
zig build --watch -p ~/.local
then watch the executable for fast development:
watch <executable> [..args]