buffet
d484e94c44
The script lists all files in the git repository that are not ignored, and runs a given command on change using entr.
15 lines
324 B
Nix
15 lines
324 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
|
|
'')
|
|
];
|
|
};
|
|
}
|