mac 为什么每次都要source ~/.bash_profile 环境变量才能生效

在终端输入:

第一步:vi ~/.zshrc

第二步:

按 i   进行输入

添加:source ~/.bash_profile

第三步:

按esc

输入:    :wq   进行保存退出

原文地址:https://www.cnblogs.com/huangzhihui/p/12809479.html