Search code examples
zshnvmoh-my-zshzshrc

How to correctly setup plugin nvm for oh-my-zsh


I'm using oh-my-zsh and I would like to use the plugin nvm. It works fine, except for one part, the auto switch to correct node version.

I've set the env variable NVM_AUTOLOAD=1 inside my .zshrc file but it's not working.

Anyone having an idea how to solve that ?

Thanks.


Solution

  • With the latest oh-my-zsh (at the time of this comment), just need to put zstyle ':omz:plugins:nvm' autoload true before the call to source $ZSH/oh-my-zsh.sh