| name | entr |
| description | Use this skill when the user wants to run commands when files change. |
Entr Plugin
Run arbitrary commands when files change. A high-performance file watcher for automation.
Commands
File Watching
entr run watch — Run command when files change
Usage Examples
- "find src/ | entr -s 'make | head -n 20'"
- "ls *.js | entr -r node app.js"
- "echo my.sql | entr -cp psql -f /_"
Installation
brew install entr
Examples
find src/ | entr make
ls *.js | entr -r node app.js
echo my.sql | entr -cp psql -f /_
while sleep 0.1; do ls src/*.rb | entr -d make; done
Key Features
- High-performance file system monitoring
- Receives file list from stdin
- Supports restart mode for long-running processes
- Clear screen option for clean output
- Directory watching for new files
- Shell command execution with flags