diff options
author | Carlo Sala <carlosalag@protonmail.com> | 2023-06-07 18:43:47 +0200 |
---|---|---|
committer | Carlo Sala <carlosalag@protonmail.com> | 2023-06-07 18:43:47 +0200 |
commit | 46c70406dd0b26bbd61210873ad6c86d9e8ee5da (patch) | |
tree | 40977853e9f485a879eee1be62e6c3fb20339e40 /plugins/nvm/nvm.plugin.zsh | |
parent | 115cee17015e4b5665e16dc4fd15c53e06a22f9a (diff) | |
download | zsh-46c70406dd0b26bbd61210873ad6c86d9e8ee5da.tar.gz zsh-46c70406dd0b26bbd61210873ad6c86d9e8ee5da.tar.bz2 zsh-46c70406dd0b26bbd61210873ad6c86d9e8ee5da.zip |
feat(nvm): add `npx` to lazy trigger list
Closes #11740
Diffstat (limited to 'plugins/nvm/nvm.plugin.zsh')
-rw-r--r-- | plugins/nvm/nvm.plugin.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/nvm/nvm.plugin.zsh b/plugins/nvm/nvm.plugin.zsh index 20697d67d..31d275415 100644 --- a/plugins/nvm/nvm.plugin.zsh +++ b/plugins/nvm/nvm.plugin.zsh @@ -43,8 +43,8 @@ if zstyle -t ':omz:plugins:nvm' lazy; then # Call nvm when first using nvm, node, npm, pnpm, yarn or other commands in lazy-cmd zstyle -a ':omz:plugins:nvm' lazy-cmd nvm_lazy_cmd eval " - function nvm node npm pnpm yarn $nvm_lazy_cmd { - unfunction nvm node npm pnpm yarn $nvm_lazy_cmd + function nvm node npm npx pnpm yarn $nvm_lazy_cmd { + unfunction nvm node npm npx pnpm yarn $nvm_lazy_cmd # Load nvm if it exists in \$NVM_DIR [[ -f \"\$NVM_DIR/nvm.sh\" ]] && source \"\$NVM_DIR/nvm.sh\" \"\$0\" \"\$@\" |