entr
Run arbitrary commands when files change. More information: <https://manned.org/entr>.
Install
- All systems
-
curl cmd.cat/entr.sh
- Debian
-
apt-get install entr
- Ubuntu
-
apt-get install entr
- Alpine
-
apk add entr
- Arch Linux
-
pacman -S entr
- Kali Linux
-
apt-get install entr
- Fedora
-
dnf install entr
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install entr
- OS X
-
brew install entr
- Raspbian
-
apt-get install entr
- Dockerfile
- dockerfile.run/entr
- Docker
-
docker run cmd.cat/entr entr
powered by Commando
Run arbitrary commands when files change. More information: <https://manned.org/entr>.
-
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 executing `ruby main.rb`:
ls *.rb | entr -r ruby main.rb
-
Run a command with the changed file (`/_`) as an argument:
ls *.sql | entr psql -f /_
© tl;dr; authors and contributors