Merge pull request #139 from greghughespdx/fix/path-in-hooks

fix(hooks): Add PATH export to hook commands
This commit is contained in:
Steve Yegge
2026-01-05 18:46:38 -08:00
committed by GitHub
2 changed files with 8 additions and 8 deletions

View File

@@ -9,7 +9,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt prime && gt mail check --inject && gt nudge deacon session-started" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime && gt mail check --inject && gt nudge deacon session-started"
} }
] ]
} }
@@ -20,7 +20,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt prime" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime"
} }
] ]
} }
@@ -31,7 +31,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt mail check --inject" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt mail check --inject"
} }
] ]
} }
@@ -42,7 +42,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt costs record" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt costs record"
} }
] ]
} }

View File

@@ -9,7 +9,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt prime && gt nudge deacon session-started" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime && gt nudge deacon session-started"
} }
] ]
} }
@@ -20,7 +20,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt prime" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt prime"
} }
] ]
} }
@@ -31,7 +31,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt mail check --inject" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt mail check --inject"
} }
] ]
} }
@@ -42,7 +42,7 @@
"hooks": [ "hooks": [
{ {
"type": "command", "type": "command",
"command": "gt costs record" "command": "export PATH=\"$HOME/go/bin:$HOME/bin:$PATH\" && gt costs record"
} }
] ]
} }