Last active
August 29, 2015 14:17
-
-
Save andykais/b38a5fa330a00ce1ff92 to your computer and use it in GitHub Desktop.
I use for run on change for any compiling program with nice output
This file contains hidden or 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
#!/bin/sh | |
FORMAT=$(echo -e "\033[1;33m%w%f\033[0m written at $(date +'%r')") | |
"$@" | |
while inotifywait -qre close_write --format "$FORMAT" . | |
do | |
"$@" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
example:
$ roc pdfl assignment.tex