zsh: command not found:XXX

zsh: command not found:XXX

0.2662018.08.31 14:17:03字数 39阅读 8,830

原因:zsh主题插件oh_my_zsh,环境变量问题

解决:open .zshrc --》找到# User configuration 下面添加source ~/.bash_profile 

 

然后,执行source .zshrc

 

 

安装oh-my-zsh后,之前安装的mysql、anaconda等在命令行输入显示command not found问题,解决方法如下:

1、由于.zshrc 没有配置相关环境变量设置,需要将bash 中.bash_profile 全部环境变量加入

open .zshrc

2、下拉找到# User configuration部分,在下面添加

source ~/.bash_profile

3、执行下面命令后,问题解决。

source .zshrc
posted @ 2020-08-19 17:51  sundayswift  阅读(1750)  评论(0编辑  收藏  举报