解决方案如下: 1、编辑 .zshrc 文件 vim ~/.zshrc 2、然后在末尾加上 source ~/.bash_profile; 保存退出 3、让配置文件修改后生效 source ~/.bash_profile 如图 相关文章: