Created
August 24, 2012 03:21
-
-
Save jphpsf/3445108 to your computer and use it in GitHub Desktop.
Trigger a command when file changes (useful for rebuild)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rebuild { | |
while inotifywait -qr -e close_write $2; do clear && $1 $2; done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment