git-entr #72
1 changed files with 15 additions and 0 deletions
15
users/buffet/git-entr.nix
Normal file
15
users/buffet/git-entr.nix
Normal 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
|
||||
'')
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue