wbyoung/avn

Does not change versions in new shell session

dlee opened this issue · 1 comments

dlee commented

When I open a new zsh session in a directory that contains a .node-version or a .nvmrc, the node version does not automatically change. I need to do a cd . in order for avn to recognize and change the node version.

Details

  • avn 0.2.3
  • node v8.4.0
  • nvm 0.33.4
  • zsh 5.4.1

The output of __avn_debug in the directory with a .node-version file is: empty

avn is loaded in my ~/.{bash|zsh}{_profile|rc} file with:

[[ -s "$HOME/.avn/bin/avn.sh" ]] && source "$HOME/.avn/bin/avn.sh" # load avn

nvm specific

  • As an nvm user I am confirming that I did not install with Homebrew
dlee commented

After debugging this some more, I believe it's an issue caused by having the zsh-nvm plugin installed at the same time. Removing zsh-nvm fixes the issue for me.