mac下环境变量的配置(以android adb为例)

2016-04-29  本文已影响0人  DevWang

1、终端中输入 cd ~ 回车
2、输入 touch .bash_profile 回车
touch:如果没有,则创建文件;如果有,更新一下文件时间
3、输入open -e .bash_profile 回车
open:打开文件
4、在打开的文件最后加入以下内容:
export PATH=/Users/wangduo/Library/Android/sdk/platform-tools/
5、终端中输入 source .bash_profile

1、open .zshrc
打开zsh的配置文件,在# User configuration部分,
添加读取.bash_profile的语句:source ~/.bash_profile
2、source .zshrc
使.zshrc生效

上一篇 下一篇

猜你喜欢

热点阅读