zsh: command not found: 解决方法

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

第一步

在终端执行

open ~/.zshrc

第二步

找到 "# User configuration"

在其下面添加下面内容

source ~/.bash_profile

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

第三步

在终端里执行

source ~/.zshrc
posted @ 2020-03-28 17:34  低调的人儿  阅读(35435)  评论(1编辑  收藏  举报