Created
August 31, 2012 16:08
-
-
Save xymor/3555170 to your computer and use it in GitHub Desktop.
Use libnotify to run tests automaticaly after saving a source
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
# 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