Entr
Run arbitrary commands when files change
Install / Use
/learn @eradman/EntrREADME
Event Notify Test Runner
A utility for running arbitrary commands when files change. Uses kqueue(2) or
inotify(7) to avoid polling. entr was written to facilitate rapid feedback
on the command line.
Source Installation - BSD, Mac OS, and Linux
./configure
make test
make install
To see available build options run ./configure -h
Docker and WSL
Incomplete inotify support on Windows Subsystem for Linux and Docker for Mac
may cause entr to respond incorrectly. Setting the environment variable
ENTR_INOTIFY_WORKAROUND enables entr to operate in these environments.
Platform Features
On Mac OS and Linux, symlinks are not followed unless the environment variable
ENTR_FOLLOW_SYMLINK is set.
Man Page Examples
Rebuild a project if source files change, limiting output to the first 20 lines:
$ find src/ | entr -s 'make | head -n 20'
Launch and auto-reload a node.js server:
$ ls *.js | entr -r node app.js
Clear the screen and run a query after the SQL script is updated:
$ echo my.sql | entr -cp psql -f /_
Rebuild project if a source file is modified or added to the src/ directory:
$ while sleep 0.1; do ls src/*.rb | entr -d make; done
Auto-reload a web server, or terminate if the server exits
$ ls * | entr -rz ./httpd
News
Notification of new releases are provided by an Atom feed, and release history is covered in the NEWS file.
Related Skills
node-connect
344.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
96.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
344.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
344.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
