Ask HN: Can I see your scripts?
I use this script, saved as `rerun`, to automatically re-execute a command whenever a file in the current directory changes:<p><pre><code>    #!&#x2F;usr&#x2F;bin&#x2F;sh

    while true; do
        reset;
        &quot;$@&quot;;
        inotifywait -e MODIFY --recursive .
    done
</code></pre>
For example, if you invoke `rerun make test` then `rerun` will run `make test` whenever you save a file in your editor.