最近碰到了这个问题,搜了很多资料,都是千篇一律的说是修改.zshrc,但其实,最有可能的是修改~/.profile,在~/.profile中添加 source ~/.bash_profile 关掉Termianl,然后重新打开,就可以了。