每次打開終端都需要source .bash_profile才能使用自己定義的環(huán)境變量牛隅。
這個(gè)是因?yàn)樾掳姹镜膍acOS開始飘庄,新用戶的默認(rèn)shell改為了zsh
解決方法:
對(duì)于zsh脑蠕,使用.zshrc,只需要把你的環(huán)境變量配置到 .zshrc里面一遍即可
```
open ~/.bash_profile
```
復(fù)制 command + c??
```
open ~/.zshrc
```
粘貼 command + v
解決