rice/users/buffet/git-entr.nix
2024-08-27 18:52:59 +02:00

15 lines
314 B
Nix

{pkgs, ...}: {
home-manager.users.buffet = {
home.packages = [
(pkgs.writeScriptBin "git-entr" ''
#!/bin/sh
echo "looping entr. press ctrl-c twice to exit"
while sleep 1; do
git ls-files -cdmo --exclude-standard | entr -d "$@"
done
'')
];
};
}