osx中终端里面没有运行.bashrc的原因

来源:互联网 发布:帝国cms 附件名 编辑:程序博客网 时间:2024/06/05 18:09

osx的终端是打开了一个login shell,也就是意味着这里

读取了~/.bash_profile,但是没有读取~/.bashrc。

要让打开终端时也读取~/.bashrc,就在~/.bash_profile当中加入这一行

[[ -s ~/.bashrc ]] && source ~/.bash

这一行的意思是当.bashrc不为空时source它

mac上是.profile

0 0
原创粉丝点击