mac adb 每次要source ~/.bash_profile 才生效

mac下面配置adb,每次使用都需要source .bash_profile后才能使用.

解决方案:
1,看下根目录是否有.zshrc文件,没有就新建个 touch .zshrc
2,打开这个文件 open -e .zshrc
3,在后面添加# Enable my profile
source ~/.bash_profile
4,保存
5,输入source .bash_profile

你可能感兴趣的:(mac adb 每次要source ~/.bash_profile 才生效)