mac 设置全局环境变量

bash中

vim .bash_profile

在里面写入需要增加的环境变量

source .bash_profile 立刻生效命令