devos/pre-commit.sh
2022-07-03 01:19:14 +02:00

5 lines
189 B
Bash
Executable file

#!/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 .