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

在终端输入:

第一步:vi ~/.zshrc

第二步:

按 i   进行输入

添加:source ~/.bash_profile

第三步:

按esc

输入:    :wq   进行保存退出

posted @ 2020-04-30 16:13  Yellow_Hui  阅读(1746)  评论(0)    收藏  举报