fix: ~/.local/bin ahead of npm-global so the mmdc wrapper wins

npm's mmdc shadowed the ~/.local/bin wrapper that passes puppeteer the
--no-sandbox config, so nvim's mermaid rendering failed on Ubuntu 24.04.
No other ~/.local/bin wrapper shares a name with an npm-global binary.
Brew still sits ahead of both: it has its own bat, herdr and python3.14,
and moving it would change which of those runs.
This commit is contained in:
bcherb2 committed 2026-11-18 02:29:35 -05:00
1 parent e0c78a3ffa
commit 0a5ec74fa5
2 files changed
+4 -3

No files matched your search

+3 -1
View File
@@ -68,8 +68,10 @@ _prepend() { [[ -d $1 ]] && path=("$1" $path) }
_append() { [[ -d $1 ]] && path=($path "$1") }
_prepend "$HOME/bin"
_prepend "$HOME/.local/bin"
# ~/.local/bin after (so ahead of) npm-global: its wrappers -- mmdc with the
# puppeteer --no-sandbox config -- must win over the npm binary they wrap.
_prepend "$HOME/.npm-global/bin"
_prepend "$HOME/.local/bin"
_prepend "$HOME/code/speccy/bin"
_append /usr/local/bin
_append /usr/local/go/bin