Create a gist now

Instantly share code, notes, and snippets.

@bwhmather /rerun
Last active Aug 4, 2017

What would you like to do?
Run a command when a file changes in the current directory
#!/usr/bin/sh
while true; do
reset;
"$@";
inotifywait -e MODIFY --recursive .;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment