-
打开终端:
touch .bash_profile 创建文件 vim ~/.bash_profile 命令行输入后回车,打开.bash_profile配置镜像地址
-
输入a进入编辑状态
a
-
输入好,按ESC退出编辑模式
输入:wq 返回至命令行
-
退出编辑模式时在命令行输入source ~/.bash_profile保存
source ~/.bash_profile
Mac下配置bash_profile环境变量
最新推荐文章于 2024-08-12 15:03:11 发布
打开终端:
touch .bash_profile 创建文件
vim ~/.bash_profile
命令行输入后回车,打开.bash_profile配置镜像地址
输入a进入编辑状态
a
输入好,按ESC退出编辑模式
输入:wq
返回至命令行
退出编辑模式时在命令行输入source ~/.bash_profile保存
source ~/.bash_profile