zsh: command not found: 解决方法

把 bash shell 中.bash_profile 全部环境变量加入zsh shell里就好

第一步

在终端执行

open ~/.zshrc

第二步

找到 "# User configuration"

在其下面添加下面内容

source ~/.bash_profile

如果没有'# User configuration',就直接把上面内容添加到 ~/.zshrc 里面

第三步

在终端里执行

source ~/.zshrc
原文地址:https://www.cnblogs.com/DI-DIAO/p/12588406.html