Open tjx666 opened 4 years ago
my .zshrc
effectively very similar
$ antigen list
lukechilds/zsh-nvm @ master
yet
nvm upgrade
hasn't worked for years for me, on two separate machines...
if I source ~/.antigen/bundles/lukechilds/zsh-nvm/zsh-nvm.plugin.zsh
manually somewhere at the bottom of my .zshrc
then nvm upgrade
works once more.
my suspicions turned to the line that nvm itself added in our .zshrc
's, i.e. text from the nvm readme
The script clones the nvm repository to \~/.nvm, and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc). export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
removing this seems to do the trick, it could be the case that we both installed nvm manually, however I remember installing nvm manually AFTER the nvm upgrade
decorator stopped working? And what is it in zsh-nvm that's stopping nvm from writing this line back to our .zshrc's?
It looks like nvm can't recogonize the upgrade child command.
My
.zshrc
: