diff --git a/README.md b/README.md index dce27912..db3e9397 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ use nix - [shellcheck](https://github.com/koalaman/shellcheck) - [shfmt](https://github.com/mvdan/sh) +- [beautysh](https://github.com/lovesegfault/beautysh) - [bats](https://github.com/bats-core/bats-core) ## LaTeX diff --git a/modules/hooks.nix b/modules/hooks.nix index 12e67b3c..f53502d5 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -1411,6 +1411,13 @@ in types = [ "shell" ]; entry = "${tools.shfmt}/bin/shfmt -w -s -l"; }; + beautysh = + { + name = "beautysh"; + description = "Format shell files."; + types = [ "shell" ]; + entry = "${tools.beautysh}/bin/beautysh"; + }; terraform-format = { name = "terraform-format"; diff --git a/nix/tools.nix b/nix/tools.nix index b594c040..e4af6513 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -52,6 +52,7 @@ , shellcheck , bats , shfmt +, beautysh , statix , stylish-haskell , stylua @@ -79,6 +80,7 @@ in actionlint alejandra ansible-lint + beautysh cabal2nix cabal-fmt cargo