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:
1 parent
e0c78a3ffa
commit
0a5ec74fa5
2 files changed
+4
-3
No files matched your search
@@ -5,8 +5,7 @@
|
||||
#
|
||||
# It execs the real mmdc found later on PATH (the npm-global install), skipping
|
||||
# itself. A bare `mmdc` reaches this wrapper only if ~/.local/bin comes before
|
||||
# the npm-global bin on PATH; where it does not, the real mmdc runs without the
|
||||
# sandbox args. (.zshrc currently prepends ~/.npm-global/bin last, so it wins.)
|
||||
# the npm-global bin on PATH, which is the order .zshrc sets.
|
||||
set -eu
|
||||
|
||||
self=$(cd "$(dirname "$0")" && pwd -P)/$(basename "$0")
|
||||
|
||||
Reference in new issue
Block a user