File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
2928editor=" $( 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 " $@ "
3734else
3835 exec vim " $@ "
Original file line number Diff line number Diff line change 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
55exclude = 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" )
Original file line number Diff line number Diff line change @@ -22,12 +22,12 @@ login_shell = "/opt/homebrew/bin/zsh"
2222"github:goss-org/goss" = " 0.4.9"
2323actionlint = " 1.7.12"
2424chezmoi = " 2.71.0"
25- dprint = " 0.55.1 "
26- hk = " 1.50 .0"
25+ dprint = " 0.55.2 "
26+ hk = " 1.51 .0"
2727pkl = " 0.32.0"
2828shellcheck = " 0.11.0"
2929shfmt = " 3.13.1"
30- zizmor = " 1.26.1 "
30+ zizmor = " 1.27.0 "
3131
3232[tasks .bootstrap ]
3333run = [
You can’t perform that action at this time.
0 commit comments