Skip to content

Instantly share code, notes, and snippets.

@agundy
Forked from seveibar/roc.bash
Last active August 29, 2015 13:57
Show Gist options
  • Save agundy/9680424 to your computer and use it in GitHub Desktop.
Save agundy/9680424 to your computer and use it in GitHub Desktop.
while [ 1 ]; do
clear\
&& echo "[Running \"$@\" on files changes in $(pwd) at $(date +'%r')]"\
&& echo ""\
&& sleep .1\
&& $@ \
&& sleep .3;
inotifywait -r -q -e modify,move,create .;
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment