Skip to content

Instantly share code, notes, and snippets.

@xymor
Created August 31, 2012 16:08
Show Gist options
  • Save xymor/3555170 to your computer and use it in GitHub Desktop.
Save xymor/3555170 to your computer and use it in GitHub Desktop.
Use libnotify to run tests automaticaly after saving a source
# save it as inotifyrun
--
#!/bin/sh
FORMAT=$(echo -e "\033[1;33m%w%f\033[0m written")
"$@"
while inotifywait -qre close_write --format "$FORMAT" .
do
"$@"
done
--
#use inotifyrun "command" to keep the tests runnning
#ex: inotifyrun grails test-app -unit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment