entr
Run arbitrary commands when files change. More information: https://manned.org/entr.
-
Rebuild with
makeif any file in any subdirectory changes:
{{ag -l}} | entr {{make}} -
Rebuild and test with
makeif any.csource files in the current directory change:
{{ls *.c}} | entr {{'make && make test'}} -
Send a
SIGTERMto any previously spawned ruby subprocesses before executingruby main.rb:
{{ls *.rb}} | entr -r {{ruby main.rb}} -
Run a command with the changed file (
/_) as an argument:
{{ls *.sql}} | entr {{psql -f}} /_
License and Disclaimer
The content on this page is copyright © 2014—present the tldr-pages team and contributors.This page is used with permission under Creative Commons Attribution 4.0 International License.
While we do attempt to make sure content is accurate, there isn't a warranty of any kind.