devos/pre-commit.sh

6 lines
189 B
Bash
Raw Normal View History

2022-07-03 01:19:14 +02:00
#!/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 .