Closed JonahMoses closed 6 years ago
Can you share the rest of your .zshrc
?
Thanks - what about aliases.zsh
and prompt.zsh
?
prompt.zsh
aliases.zsh
hmm, nothing strange there :-/
If from bash, you do nvm deactivate
before sourcing .zshrc
, what happens?
My default shell is zsh so I'm never in bash land. However if I switch to bash with exec bash
then nvm deactivate
I get a nvm command not found
ok, so then in zsh prior to sourcing zshrc, if you do nvm deactivate
, and then source zshrc :-)
Either that or adding PATH="/usr/local/bin:$(getconf PATH)"
to the top of my .zshrc file seemed to fix it
Thank you!...The PATH thing fixed it for me. Been struggling with this.
I do not have a
.npmrc
and the following lines are in my.zshrc
file:export PATH="~/.yarn/bin:/usr/local/bin:/usr/local/sbin:~/bin:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion