While installing nvm by install script in zsh, the download is successful, however the hook into zshrc does not take place.
However it hooks into .bashrc
Download of nvm into folder .nvm successful, however hooking into zshrc not happening
What did you expect to happen?
the .zshrc should be updated with this or something similar:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Is there anything in any of your profile files that modifies the PATH?
Yes multiple additions to the PATH var like
export PATH="[...]:$PATH"
There's a lot of difficulty with reliably determining which profile file the setup lines should be installed into, unfortunately. What other profile files do you have in $HOME?
While installing nvm by install script in zsh, the download is successful, however the hook into zshrc does not take place. However it hooks into .bashrc
Operating system and version:
Ubuntu 21.04
How did you install
nvm
?curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
What happened?
Download of nvm into folder .nvm successful, however hooking into zshrc not happening
What did you expect to happen?
the .zshrc should be updated with this or something similar:
export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
Is there anything in any of your profile files that modifies the
PATH
?Yes multiple additions to the PATH var like
export PATH="[...]:$PATH"