Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

mac 安装omyzsh后不执行~/.bash_profile、~/.bashrc的完美解决办法

$
0
0

mac 安装 omyzsh 后, terminal瞬间逼格飙升!

但是!

terminal init的时候并不会执行~/.bash_profile、~/.bashrc等脚本了,

这是因为其默认启动执行脚本变为了~/.zshrc。

解决办法就是修改~/.zshrc文件,在其中添加:

source ~/.bash_profile、~/.bashrc等脚本文件就ok了

以上所述是小编给大家介绍的mac 安装omyzsh后不执行~/.bash_profile、~/.bashrc的完美解决办法,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!


Viewing all articles
Browse latest Browse all 11063

Trending Articles