bin/shfmt

Sun, 19 Feb 2023 13:25:46 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 19 Feb 2023 13:25:46 -0600
changeset 1031
ceb2e56c6e8f
parent 1006
12d7a48cef22
permissions
-rwxr-xr-x

Use vim-illuminate

1006
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
1 #!/bin/sh
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
2 set -eu
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
3
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
4 age_limit=90
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
5
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
6 install_it() {
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
7 go install mvdan.cc/sh/v3/cmd/shfmt@latest
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
8 asdf reshim || :
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
9 }
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
10
12d7a48cef22 add shfmt and scdoc stubs
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
11 . ~/.lib/sh/stubexec.sh

mercurial