Skip to content

Commit

Permalink
Add beautysh
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruixi-rebirth committed Oct 8, 2023
1 parent 66c352d commit 9a3ff33
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 7 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
, shellcheck
, bats
, shfmt
, beautysh
, statix
, stylish-haskell
, stylua
Expand Down Expand Up @@ -79,6 +80,7 @@ in
actionlint
alejandra
ansible-lint
beautysh
cabal2nix
cabal-fmt
cargo
Expand Down

0 comments on commit 9a3ff33

Please sign in to comment.