Mac 下更新 .bash_profile 文件

1、打开terminal(终端)

2、cd ~ ( 进入当前用户的home目录)

3、open .bash_profile (打开.bash_profile文件,如果文件不存在就  创建文件:touch .bash_profile  编辑文件:open -e bash_profile)

4、直接更改弹出的.bash_profile文件内容

eg:配置adb环境变量:

 

export PATH=${PATH}:/Users/android-sdk-mac_x86/tools:/Users/android-sdk-mac_x86/platform-tools

 

5、command + s 保存文件,然后关闭

6、在terminal(终端)中输入 source .bash_profile (使用刚才更新之后的内容)

 

from:http://www.cnblogs.com/mokey/p/3542389.html

posted @ 2015-11-02 09:57  狂奔的小狮子  阅读(558)  评论(0编辑  收藏  举报