Run arbitrary commands when files change.
make
if any files in any subfolders change:{{ag -l}} | 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}} /_