转载自:https://www.jianshu.com/p/d16472647ff3

自己在 ~/.bash_profile 中配置环境变量, 可是每次重启终端后配置的不生效.需要重新执行 : $source ~/.bash_profile

发现zsh加载的是 ~/.zshrc文件,而 ‘.zshrc’ 文件中并没有定义任务环境变量。

解决办法

在~/.zshrc文件最后,增加一行:

source ~/.bash_profile

 

 

原文:https://blog.csdn.net/science_Lee/article/details/79214127 

相关文章:

  • 2021-08-29
  • 2021-12-09
  • 2021-08-10
  • 2022-12-23
  • 2021-06-25
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-05
  • 2021-12-10
  • 2021-06-29
  • 2022-12-23
相关资源
相似解决方案