Single pre-commit hook which runs shfmt on shell script files.
An example .pre-commit-config.yaml
:
- repo: git://github.com/pecigonzalo/pre-commit-shfmt
sha: master
hooks:
- id: shell-fmt
args:
- --indent=4
Enjoy the clean code!