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

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容