Add a pre-commit hook

This commit is contained in:
Bad 2022-07-03 01:19:14 +02:00
parent a46b9bc7ad
commit 2427686ffc

5
pre-commit.sh Executable file
View 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 .