今天遇到一个问题,Idea无法读取~/.bash_profile下的配置文件。

上网查了好久,都说是launchctl的问题。

但是其实我这边是因为安装了zsh,导致环境标量失效。

在~/.zshrc中添加:

source ~/.bash_profile

然后执行,source ~/.zshrc即可。

查看原文