From f1eb82cf0bbe36cfcc248c2a42648458b391c99b Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Tue, 19 Sep 2023 20:32:45 -0700 Subject: [PATCH] Switch from entr to inotifywait --- Makefile | 2 +- flake.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2bc9d58..ce0441c 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ clean: test -e out && rm -rf out watch: - while sleep 1; do find src/ build.py Makefile | entr -d make build; done + while inotifywait -r -e modify -e move -e create -e delete build.py Makefile src/; do make build; done serve: python -m http.server --directory out/ diff --git a/flake.nix b/flake.nix index 3a8abbf..d904166 100644 --- a/flake.nix +++ b/flake.nix @@ -28,7 +28,7 @@ default = pkgs.mkShell { packages = [ pyenv - pkgs.entr + pkgs.inotify-tools pkgs.rsync pkgs.pagefind ];