Skip to content

Commit b9328bb

Browse files
Update mise tools (#54)
* Update mise tools * Update hk shfmt file selectors * Format commit message editor with shfmt --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: mono <mono@mono0x.net>
1 parent 1f3d3c3 commit b9328bb

3 files changed

Lines changed: 17 additions & 16 deletions

File tree

bin/commit-message-editor

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@ detect_terminal_editor() {
77
local depth=0
88
local command_line
99

10-
while [ "${parent_pid}" -gt 1 ] 2>/dev/null && [ "${depth}" -lt 12 ]
11-
do
10+
while [ "${parent_pid}" -gt 1 ] 2>/dev/null && [ "${depth}" -lt 12 ]; do
1211
command_line="$(ps -o command= -p "${parent_pid}" 2>/dev/null || true)"
1312
case "${command_line}" in
14-
*Code.app*|*code*)
15-
printf '%s\n' code
16-
return 0
17-
;;
13+
*Code.app* | *code*)
14+
printf '%s\n' code
15+
return 0
16+
;;
1817
esac
1918

2019
parent_pid="$(ps -o ppid= -p "${parent_pid}" 2>/dev/null || true)"
@@ -28,11 +27,9 @@ detect_terminal_editor() {
2827

2928
editor="$(detect_terminal_editor || true)"
3029

31-
if [ "${editor}" = 'code' ] && [ -x "$(command -v code)" ]
32-
then
30+
if [ "${editor}" = 'code' ] && [ -x "$(command -v code)" ]; then
3331
exec code --wait "$@"
34-
elif [ -x "$(command -v nvim)" ]
35-
then
32+
elif [ -x "$(command -v nvim)" ]; then
3633
exec nvim "$@"
3734
else
3835
exec vim "$@"

hk.pkl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
amends "package://github.com/jdx/hk/releases/download/v1.50.0/hk@1.50.0#/Config.pkl"
1+
amends "package://github.com/jdx/hk/releases/download/v1.51.0/hk@1.51.0#/Config.pkl"
22

3-
import "package://github.com/jdx/hk/releases/download/v1.50.0/hk@1.50.0#/Builtins.pkl"
3+
import "package://github.com/jdx/hk/releases/download/v1.51.0/hk@1.51.0#/Builtins.pkl"
44

55
exclude = List("sync/**")
66

@@ -10,7 +10,11 @@ local linters = new Mapping<String, Step> {
1010
}
1111
["shellcheck"] = Builtins.shellcheck
1212
["shfmt"] = (Builtins.shfmt) {
13-
glob = Builtins.shfmt.glob + List("src/dot_zshenv", "src/dot_zprofile")
13+
match_any =
14+
Builtins.shfmt.match_any
15+
+ List(new FileSelector {
16+
glob = List("src/dot_zshenv", "src/dot_zprofile")
17+
})
1418
}
1519
["bash"] {
1620
glob = List("**/*.sh")

mise.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ login_shell = "/opt/homebrew/bin/zsh"
2222
"github:goss-org/goss" = "0.4.9"
2323
actionlint = "1.7.12"
2424
chezmoi = "2.71.0"
25-
dprint = "0.55.1"
26-
hk = "1.50.0"
25+
dprint = "0.55.2"
26+
hk = "1.51.0"
2727
pkl = "0.32.0"
2828
shellcheck = "0.11.0"
2929
shfmt = "3.13.1"
30-
zizmor = "1.26.1"
30+
zizmor = "1.27.0"
3131

3232
[tasks.bootstrap]
3333
run = [

0 commit comments

Comments
 (0)