Solve the problem that the mac terminal needs source .bash_profile every time to take effect

cd ~

vi .zshrc

Input: source ~/.bash_profile

Save

Restart the terminal, the perfect solution

.zshrc is equivalent to the environment variable of the window

 

Guess you like

Origin blog.csdn.net/qq_21478261/article/details/114297004