Команда entr: опции, ключи и примеры использования
entr
Run arbitrary commands when files change.
- Rebuild with
make
if any file in any subdirectory changes:
{{ag -l}} | entr {{make}}
- Rebuild and test with
make
if any.c
source files in the current directory change:
{{ls *.c}} | entr {{'make && make test'}}
- Send a
SIGTERM
to 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}} /_
Также может быть вам интересно:
- 25 января вышло новое крупное обновление Age of Empires II DE: Lords of the West
- И снова sudo, и снова "решето"
- Только одна из десяти компаний ожидает, что все работники вернутся в офисы
- Google Play временно забанил видео-плеер за поддержку неправильных субтитров
- Google прекращает поддержку сторонних приложений в API Chrome-like