Create onchange script
Some checks are pending
/ check (push) Waiting to run

Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
Oliver Davies 2025-09-24 01:35:51 +01:00
parent 4b871d332e
commit a74ee06ec3

View file

@ -0,0 +1,23 @@
{
flake.modules.homeManager.base =
{ pkgs, ... }:
{
home.packages = [
(pkgs.writeShellApplication {
name = "onchange";
runtimeInputs = with pkgs; [
coreutils
entr
];
text = ''
PATTERN="$1"
shift 1
find . -path "$PATTERN" -type f | entr -cs "$@"
'';
})
];
};
}