Mac下IDE无法读取环境变量问题

今天遇到一个问题,Idea无法读取~/.bash_profile下的配置文件。
上网查了好久,都说是launchctl的问题。

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

在~/.zshrc中添加:

source ~/.bash_profile

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

原文地址:https://www.cnblogs.com/xing901022/p/8507567.html