Run arbitrary commands when files change. More information: https://eradman.com/entrproject/.
make if any file in any subdirectory changes:{{ag --files-with-matches}} | entr {{make}}
make if any .c source files in the current directory change:{{ls *.c}} | entr {{'make && make test'}}
SIGTERM to any previously spawned ruby subprocesses before executing ruby main.rb:{{ls *.rb}} | entr -r {{ruby main.rb}}
/_) as an argument:{{ls *.sql}} | entr {{psql -f}} /_
{{echo my.sql}} | entr -cp {{psql -f}} /_
{{find src/}} | entr -s {{'make | sed 10q'}}
{{ls *.js}} | entr -r {{node app.js}}