Skip to content

Instantly share code, notes, and snippets.

@jphpsf
Created August 24, 2012 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jphpsf/3445108 to your computer and use it in GitHub Desktop.
Save jphpsf/3445108 to your computer and use it in GitHub Desktop.
Trigger a command when file changes (useful for rebuild)
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