美文网首页
Mac下怎么打开./bash_profile

Mac下怎么打开./bash_profile

作者: 波洛的汽车电子世界 | 来源:发表于2018-10-10 22:23 被阅读0次
    1. 启动Terminal

    2. 进入当前用户的home目录

      输入 cd ~

    3. 编辑.bash_profile文件

      输入open -e .bash_profile,这时./bash_profile就会打开,可以在后面加入要写入的环境变量(注意:从后往前读,注意覆盖)

    4. 保存文件,关闭.bash_profile

    5. 更新刚配置的环境变量

      输入source .bash_profile

    相关文章

      网友评论

          本文标题:Mac下怎么打开./bash_profile

          本文链接:https://www.haomeiwen.com/subject/mfzmaftx.html