Run arbitrary commands when files change using entr
entr
is really cool, I have used entr
for automatically building and testing Go programs, when coding these.
ls *.go | entr -c sh -c 'go build && go test'
Another example for perlcritic
ls t/*.rc |entr -c sh -c 'perlcritic --profile t/perlcritic.rc lib'