diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2024-08-28 10:34:25 +0200 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2024-08-28 10:34:25 +0200 |
| commit | a3dfe290363c5f0ac6add41a1126d7c842a4d7c4 (patch) | |
| tree | a63ab79c1bcd11822303ee4fa50d85dee9a2d878 /plugins/nvm | |
| parent | efe21261d031b4836f64112a899706322acd26b0 (diff) | |
| download | zsh-a3dfe290363c5f0ac6add41a1126d7c842a4d7c4.tar.gz zsh-a3dfe290363c5f0ac6add41a1126d7c842a4d7c4.tar.bz2 zsh-a3dfe290363c5f0ac6add41a1126d7c842a4d7c4.zip | |
feat(nvm): add `pnpx` as lazy cmd
Diffstat (limited to 'plugins/nvm')
| -rw-r--r-- | plugins/nvm/README.md | 7 | ||||
| -rw-r--r-- | plugins/nvm/nvm.plugin.zsh | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/plugins/nvm/README.md b/plugins/nvm/README.md index eb1e236ee..fe91cc3b2 100644 --- a/plugins/nvm/README.md +++ b/plugins/nvm/README.md @@ -26,9 +26,10 @@ These settings should go in your zshrc file, before Oh My Zsh is sourced: #### Lazy startup This option will help you to defer nvm's load until you use it to speed-up your zsh startup. This will source -nvm script only when using it, and will create a function for `node`, `npm`, `npx`, `pnpm`, `yarn`, `corepack` -and the command(s) specified by `lazy-cmd` option, so when you call either of them, nvm will be loaded and run -with default version. To enable it, you can add this snippet to your zshrc, before Oh My Zsh is sourced: +nvm script only when using it, and will create a function for `node`, `npm`, `npx`, `pnpm`, `pnpx`, `yarn`, +`corepack` and the command(s) specified by `lazy-cmd` option, so when you call either of them, nvm will be +loaded and run with default version. To enable it, you can add this snippet to your zshrc, before Oh My Zsh is +sourced: ```zsh zstyle ':omz:plugins:nvm' lazy yes diff --git a/plugins/nvm/nvm.plugin.zsh b/plugins/nvm/nvm.plugin.zsh index f36182eda..a00c2e117 100644 --- a/plugins/nvm/nvm.plugin.zsh +++ b/plugins/nvm/nvm.plugin.zsh @@ -74,7 +74,7 @@ function _omz_setup_autoload { if zstyle -t ':omz:plugins:nvm' lazy; then # Call nvm when first using nvm, node, npm, pnpm, yarn, corepack or other commands in lazy-cmd zstyle -a ':omz:plugins:nvm' lazy-cmd nvm_lazy_cmd - nvm_lazy_cmd=(nvm node npm npx pnpm yarn corepack $nvm_lazy_cmd) # default values + nvm_lazy_cmd=(nvm node npm npx pnpm pnpx yarn corepack $nvm_lazy_cmd) # default values eval " function $nvm_lazy_cmd { for func in $nvm_lazy_cmd; do |
