Mercurial
>
hg
>
mhoward
>
dotfiles
/ annotate
Search:
summary
shortlog
changelog
graph
tags
bookmarks
branches
files
help
file
latest
revisions
annotate
diff
comparison
raw
.lib/stubs/shfmt@52750027eff6 (annotated)
.lib/stubs/shfmt
Sat, 18 May 2024 10:56:07 -0500
author
Meredith Howard <mhoward@roomag.org>
date
Sat, 18 May 2024 10:56:07 -0500
changeset 1168
52750027eff6
parent 1107
c6d7ac40bd3c
permissions
-rwxr-xr-x
simplify nvim-cmp setup
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