NVM Not Found after Pimping Terminal with oh-my-zsh?
Have you finished configuring your terminal?
Looking so cool now, but while can't I make use of my favorite tools after the Pimp?
I have encountered this issue every time I pimp my terminal, so today I have decided to share with everyone how I did it.
Why does this happen
This happens because when installing NVM it adds code to
~/.bashrc, as your default terminal now uses
zsh and not bash it never reads ~/.bashrc and therefore never loads NVM.
To avoid this at installation, you can simply put
zsh at the end of the curl command.
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | zsh
"In other words: this is NVMs fault, not yours."
To fix this, all we need to do is tell the
~/.zshrc to load
nvm on the prompt.
From your terminal, open the
.zshrc file with your favorite editor,
nano will be just fine.
And paste the following line of command at the top:
Save the file
ctrl + s and
ctrl + x to exit
Restart your terminal, everything should work just fine now.
See you soon!