解决mac 终端每次都需要source .bash_profile 才能生效

cd ~

vi .zshrc

输入:source ~/.bash_profile

保存

重启终端,完美解决

.zshrc 则相当于window的环境变量

猜你喜欢

转载自blog.csdn.net/qq_21478261/article/details/114297004