如果遇到每次重启terminal ADB命令无法找到的话可以参考如下:
Step 1:
Command + Space(空格)调出搜索框
Step 2:
输入 :Terminal 打开终端
Step 3:
输入命令
touch .zshrc
输入完 按下回车
Step 4:
open -e .zshrc
输入完按下回车
系统会打开 窗口,将【source ~/.bash_profile】括号内的文字复制进打开的窗口内,Command+S 保存
Step 5:
source .bash_profile
这样每次终端启动会先加载~/.zshrc,在加载~/.zshrc的最后加载了~/.bash_profile。
亲测好用