entr

entr

TLDR

Rebuild with make if any file in any subdirectory changes

>_ [ag -l] | entr [make]
copy

Rebuild and test with make if any .c source files in the current directory change

>_ [ls *.c] | entr ['make && make test']
copy

Send a SIGTERM to any previously spawned ruby subprocesses before executing ruby main.rb

>_ [ls *.rb] | entr -r [ruby main.rb]
copy

Run a command with the changed file (/_) as an argument

>_ [ls *.sql] | entr [psql -f] /_
copy

Copied to clipboard
free 100$ digital ocean credit