1,關於zsh ,請移步介紹:終極 Shell——ZSH
官網 :oh-my-zsh
2,安裝完zsh,在使用相關shell命令,出現了”zsh: command not found adb:mysql”,”zsh: command not found: git” 等一系列error
3,解決辦法
既然是.zshrc 沒有配置相關環境變量設置,把 bash 中.bash_profile 全部環境變量加入就好
open .zshrc
- 1
然後找到# User configuration部分,添加
source ~/.bash_profile
執行
source .zshrc
- 1
在運行adb 命令
參考博客網址:https://blog.csdn.net/yianemail/article/details/51693583