diff --git a/onchange b/onchange new file mode 100755 index 0000000..f3d75af --- /dev/null +++ b/onchange @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +EXCLUSION="~$|swp$|swo$" + +while inotifywait --exclude $EXCLUSION -r -e modify . +do + $@ +done