解决Mac安装oh-my-zsh后出现 command not found的问题

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

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

open .zshrc

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

source ~/.bash_profile

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

source .zshrc

猜你喜欢

转载自blog.csdn.net/qq_41689620/article/details/85047779
今日推荐