mac送廠維修,環境設定通通歸零~QQ – why should I source .bash_profile every time?

  1. Realize that you are in zsh, which means you should be editing your profile in .zshrc.
  2. Copy the offending lines from .bash_profile to .zsh

將原本放在 .bash_profile的指令,通通搬到 .zsh

重開 terminal,輸入 nvm -v ,測試成功!

 

Reference: https://stackoverflow.com/questions/15733508/why-do-i-need-to-source-bash-profile-every-time/15734303