Comment

Comment by bwhmather

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.
parent bwhmather 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton