touch ~/.bash_profile; // 将目录跳转到.bash_profile这个文件夹 open -t ~/.bash_profile //打开.bash_profile文件 这时候会弹出一个新的窗口输入 export PATH=$PATH:/Users/XXXXX ...
打开terminal 终端 cd 进入当前用户的home目录 open .bash profile 打开.bash profile文件,如果文件不存在就 创建文件:touch .bash profile 编辑文件:open e bash profile 直接更改弹出的.bash profile文件内容 command s 保存文件,然后关闭 在terminal 终端 中输入 source .ba ...
2014-02-10 10:19 0 46413 推荐指数:
touch ~/.bash_profile; // 将目录跳转到.bash_profile这个文件夹 open -t ~/.bash_profile //打开.bash_profile文件 这时候会弹出一个新的窗口输入 export PATH=$PATH:/Users/XXXXX ...
参考:http://mirrors.ustc.edu.cn/help/homebrew-bottles.html 或者: 1、创建 .bash_profile 2、查看 、编辑 .bash_profile 文件 3、更新刚配置的环境变量 ...
1. 启动终端Terminal 2. 进入当前用户的home目录 输入cd ~ 3. 创建.bash_profile 输入touch .bash_profile 4. 编辑.bash_profile文件 输入open .bash_profile ...
你也可以在 .zshrc 文件中加一行 source .bash_profile 解决需要 source 才能使用的问题 ...
exec bash --login ...
1. 启动终端Terminal 2. 进入当前用户的home目录 输入cd ~ 3. 创建.bash_profile 输入touch .bash_profile 4. 编辑.bash_profile文件 输入open -e .bash_profile ...
转自:http://www.ahlinux.com/shell/20239.html 0x01 /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行,并从/etc/profile.d目录的配置文件中收集shell的设置; /etc ...
. ~/.bash_profile:每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该 ...