← back to Cli Printing Press
docs(cli): use brew for lefthook install instructions (#42)
c1219decb52f64f33b83d4eb44a964c1133fa6e4 · 2026-03-29 00:19:04 -0700 · Trevin Chow
go install puts the binary in ~/go/bin which isn't reliably in PATH
for git hooks, especially when invoked by GUI apps or agent tools.
brew install puts it in /opt/homebrew/bin which is universally available.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Files touched
Diff
commit c1219decb52f64f33b83d4eb44a964c1133fa6e4
Author: Trevin Chow <trevin@trevinchow.com>
Date: Sun Mar 29 00:19:04 2026 -0700
docs(cli): use brew for lefthook install instructions (#42)
go install puts the binary in ~/go/bin which isn't reliably in PATH
for git hooks, especially when invoked by GUI apps or agent tools.
brew install puts it in /opt/homebrew/bin which is universally available.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---
README.md | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index abd308b9..ae3b2686 100644
--- a/README.md
+++ b/README.md
@@ -356,12 +356,10 @@ Synthesized from post-mortems on Notion and Linear runs. 14 changes to the skill
After cloning, install git hooks so lint errors are caught before they reach CI:
```bash
-go install github.com/evilmartians/lefthook@latest
-~/go/bin/lefthook install
+brew install lefthook
+lefthook install
```
-> **Note:** If `lefthook` isn't found after `go install`, your `$GOPATH/bin` (`~/go/bin` by default) may not be in your `PATH`. Either use the full path as shown above, or add `export PATH="$HOME/go/bin:$PATH"` to your `~/.zshrc`.
-
This adds a pre-push hook that runs `golangci-lint` on changed files. The same linter config (`.golangci.yml`) runs in CI — lefthook just catches failures locally first.
If you also want `golangci-lint` locally:
← 2afbb8f2 ci: re-trigger release-please
·
back to Cli Printing Press
·
feat(cli): add .printing-press.json manifest to published CL 6821a433 →