zsh-auto-pnpm-use
is a zsh plugin that automatically loads the node version specified in .nvmrc
or .npmrc
.
.nvmrc
example:
18.16.0
or
.npmrc
example:
node-version=18.16.0
As an Oh My ZSH! custom plugin
Clone zsh-auto-pnpm-use
into your custom plugins repo.
git clone https://github.com/brunomacedo/zsh-auto-pnpm-use ~/.oh-my-zsh/custom/plugins/zsh-auto-pnpm-use
Then load as a plugin in your .zshrc
plugins=(
# git
# zsh-autosuggestions
zsh-auto-pnpm-use
)