Mac 在~/.bash_profile 中添加了环境变量,请求
2020-01-20 本文已影响0人
zackxizi
原因:
安装了zsh,zsh加载的是 ~/.zshrc文件,而 ‘.zshrc’ 文件中并没有定义任务环境变量。
解决方案:
在~/.zshrc文件最后,增加一行
source ~/.bash_profile

安装了zsh,zsh加载的是 ~/.zshrc文件,而 ‘.zshrc’ 文件中并没有定义任务环境变量。
在~/.zshrc文件最后,增加一行
source ~/.bash_profile