- Mac终端每次都要执行source ~/.bash_profil
- Mac 每次都Mac 每次都要执行source ~/.bash_
- mac adb 每次要source ~/.bash_profil
- Mac 每次都要执行source ~/.bash_profile
- Mac 每次都要执行source ~/.bash_profile
- Mac 每次都要执行source ~/.bash_profile
- Mac 每次都要执行source ~/.bash_profile
- Mac 每次都要执行source ~/.bash_profile
- .zshrc:source:87: no such file o
- .bash_profile:source:1: no such
在 ~/.bash_profile 中配置环境变量,可就是每次重启终端后配置的不生效了,还需要重新执行 : source /.bash_profile命令,感觉很繁琐
发现zsh加载的是 ~/.zshrc文件,而 ‘.zshrc’ 文件中并没有定义任务环境变量
解决办法:
通过打开 ~/.zshrc 打开文件,在最后面增加一行:source ~/.bash_profile,就OK了
网友评论