diff --git a/pre-commit.sh b/pre-commit.sh new file mode 100755 index 0000000..5e3479f --- /dev/null +++ b/pre-commit.sh @@ -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 .