I am trying to migrate my .bash_profile Bash configuration to Zsh. Thus I copied configuration to .zshrc file.
But I have two lines that fail to execute:
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
I am getting the following error message when sourcing the file:
$ source .zshrc
N/A: version "N/A -> N/A" is not yet installed.
You need to run "nvm install N/A" to install it before using it.
I am new to zsh and cannot find how to solve that.
nvm.sh. BTW, it is pretty brave to source from Zsh a file which was obviously written for bash (bash_completion). I hope that you manually checked that all the files you are sourcing here indeed work for Zsh too and not only for bash.