After big sur 11.4, variables defined in ~/.bash_profile do not take effect and MVN cannot be used

ZSH reads variables that are not read from ~/.bash_profile

Read from ~/.zshrc

New ~ /. ZSHRC

Increase the order

source ~/.bash_profile

The principle of analysis

Priority:

The following three are system-level configuration files, which are loaded upon system startup. If the /etc/profile/ /etc/paths /etc/bashrc # bash_profile file exists, the following files will be ignored. ~/.bash_profile or ~/.bashrc ~/.bash_login ~/.bash_profileCopy the code

Reference: juejin. Cn/post / 684490…