mac每次开机后都要执行一遍source ~/.bash_profile

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

解决办法:
~/.zshrc文件最后增加一行:source ~/.bash_profile

posted @ 2021-05-21 08:53  村_雨  阅读(675)  评论(0)    收藏  举报