entr
Run arbitrary commands when files change. See also:
watchexec. More information: https://eradman.com/entrproject/.
- Rebuild with
makeif any file in any subdirectory changes:
| entr
- Rebuild and test with
makeif any.csource files in the current directory change:
| entr ''
- Send a
SIGTERMto any previously spawned ruby subprocesses before executingruby main.rb:
| entr -r
- Run a command with the changed file (
/_) as an argument:
| entr /_
- [c]lear the screen and run a query after the SQL script is updated:
| entr -cp /_
- Rebuild the project if source files change, limiting output to the first few lines:
| entr -s ''
- Launch and auto-[r]eload a Node.js server:
| entr -r
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
