Skip to content

Instantly share code, notes, and snippets.

@bwhmather bwhmather/rerun
Last active Aug 4, 2017

Embed
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
You can’t perform that action at this time.