- 启动终端Terminal
- 进入当前用户的home目录
输入
cd ~
- 创建.bash_profile
输入
touch .bash_profile
- 编辑.bash_profile文件
输入
open .bash_profile
在弹出的页面进行编辑 - 保存文件,关闭.bash_profile
- 更新刚配置的环境变量
输入
source .bash_profile
mac下创建.bash_profile步骤
最新推荐文章于 2023-12-10 01:05:06 发布
cd ~
touch .bash_profile
open .bash_profile
source .bash_profile