Files
dotfiles/zsh
andwati 9d3f45a821 fix(zsh): stop lazy-loading nvm, source it eagerly instead
The lazy-load stub wired nvm/node/npm/npx/corepack as wrapper functions
that called a private helper, _nvm_lazy_load, to source nvm.sh on first
real use. That helper went missing in some non-interactive shell contexts
(e.g. a coding agent's captured shell snapshot only kept the public
wrapper functions, not the underscore-prefixed helper), leaving the
wrappers calling a function that no longer existed - infinite recursion
via FUNCNEST, every npm/node/nvm invocation broken.

Sourcing nvm.sh eagerly costs 300-700ms on shell startup but has no
moving parts to go missing.
2026-08-04 12:22:45 +03:00
..
2026-07-26 20:43:00 +03:00