Compare commits

...

2 commits

Author SHA1 Message Date
d484e94c44 feat: install git-entr script
The script lists all files in the git repository that are not ignored, and runs a given command on change using entr.
2024-08-10 17:56:19 +02:00
7fd15e4174 feat: install entr 2024-08-10 17:23:41 +02:00
2 changed files with 17 additions and 0 deletions

View file

@ -10,6 +10,7 @@
./foot.nix ./foot.nix
./fzf.nix ./fzf.nix
./git.nix ./git.nix
./git-entr.nix
./ime.nix ./ime.nix
./mako.nix ./mako.nix
./nixvim.nix ./nixvim.nix
@ -55,6 +56,7 @@
alejandra alejandra
clang clang
du-dust du-dust
entr
fd fd
fx fx
gdb gdb

15
users/buffet/git-entr.nix Normal file
View file

@ -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
'')
];
};
}