|
|
|
|
|
by bwhmather
1398 days ago
|
|
I use this script, saved as `rerun`, to automatically re-execute a command whenever a file in the current directory changes: #!/usr/bin/sh
while true; do
reset;
"$@";
inotifywait -e MODIFY --recursive .
done
For example, if you invoke `rerun make test` then `rerun` will run `make test` whenever you save a file in your editor. |
|
* entr(1) - http://eradman.com/entrproject/
* Watchexec - https://watchexec.github.io/