ZSH: command not found: XXX

Just add all the.bash_profile environment variables from bash shell to ZSH shell

  • Step1: Term is carried out
open .zshrc
Copy the code
  • Step2: find # User configuration and add
source ~/.bash_profile
Copy the code

  • Step3: Term is carried out
source .zshrc
Copy the code