执行一下如下命令:
source .bash_profile
执行source ~/.bash_profile,配置的环境变量才会生效,那么不想每次都执行该命令怎么办呢?
解决办法就是在~/.zshrc文件最后,增加一行:
source ~/.bash_profile
执行一下如下命令:
source .bash_profile
执行source ~/.bash_profile,配置的环境变量才会生效,那么不想每次都执行该命令怎么办呢?
解决办法就是在~/.zshrc文件最后,增加一行:
source ~/.bash_profile