Add a pre-commit hook
This commit is contained in:
parent
a46b9bc7ad
commit
2427686ffc
1 changed files with 5 additions and 0 deletions
5
pre-commit.sh
Executable file
5
pre-commit.sh
Executable file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env -S nix shell --quiet nixpkgs#bash nixpkgs#nixpkgs-fmt --ignore-environment --command bash
|
||||||
|
|
||||||
|
# Install: ln -s ../../pre-commit.sh .git/hooks/pre-commit
|
||||||
|
|
||||||
|
nixpkgs-fmt --check .
|
Loading…
Reference in a new issue