原因在于使用zsh时环境变量没有从原来的~/.bash_profile加入到~/.zshrc中
方法:
1.打开~/.zshrc文件
open ~/.zshrc
2.在文件中找到 #User configuration后,在下一行添加上:
source ~/.bash_profile
原因在于使用zsh时环境变量没有从原来的~/.bash_profile加入到~/.zshrc中
方法:
1.打开~/.zshrc文件
open ~/.zshrc
2.在文件中找到 #User configuration后,在下一行添加上:
source ~/.bash_profile