diff --git a/users/buffet/git-entr.nix b/users/buffet/git-entr.nix new file mode 100644 index 0000000..d0dd76b --- /dev/null +++ b/users/buffet/git-entr.nix @@ -0,0 +1,15 @@ +{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 + '') + ]; + }; +}