- Mac 每次都Mac 每次都要执行source ~/.bash_
- 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
- Mac终端每次都要执行source ~/.bash_profil
- Mac 系统每次都要执行source ~/.bash_profi
一、问题描述
Mac配置好了环境变量文件(.bash_profile)后,每次打开终端都需要执行一遍source ~/.bash_profile才能使环境变量生效,这样很是麻烦;
二、解决方法
1.创建.zshrc文件(如果已经有了就无须创建)
$ touch .zshrc
2.编辑.zshrc文件
open .zshrc
3.向.zshrc中添加如下内容
source ~/.bash_profile
网友评论