Mac下怎么打开./bash_profile
2018-10-10 本文已影响0人
波洛的汽车电子世界
-
启动Terminal
-
进入当前用户的home目录
输入
cd ~
-
编辑.bash_profile文件
输入
open -e .bash_profile
,这时./bash_profile
就会打开,可以在后面加入要写入的环境变量(注意:从后往前读,注意覆盖) -
保存文件,关闭.bash_profile
-
更新刚配置的环境变量
输入
source .bash_profile