Skip to content

Commit

Permalink
add shfmt installer
Browse files Browse the repository at this point in the history
  • Loading branch information
LucienMorey committed Oct 12, 2024
1 parent 9478008 commit 8400104
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
ci:
autofix_prs: false

Expand Down Expand Up @@ -33,3 +32,8 @@ repos:
rev: 0.7.17
hooks:
- id: mdformat

- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.9.0-1
hooks:
- id: shfmt
9 changes: 9 additions & 0 deletions meta/configs/shfmt-install.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# This has path set explicitly temporarily in case this is running as part of the first time execution and the path hasnt updated to include go
- shell:
- PATH=$PATH:/usr/local/go/bin go install mvdan.cc/sh/v3/cmd/shfmt@latest

- create:
- ~/.local/bin

- link:
~/.local/bin/shfmt: ~/go/bin/shfmt
1 change: 1 addition & 0 deletions meta/profiles/workstation
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ zsh-config
bash-config
tmux-config
yamlfmt-install
shfmt-install
nvim-config
git-config
ui-config

0 comments on commit 8400104

Please sign in to comment.