osx的终端是打开了一个login shell,也就是意味着这里
读取了~/.bash_profile,但是没有读取~/.bashrc。
要让打开终端时也读取~/.bashrc,就在~/.bash_profile当中加入这一行
[[ -s ~/.bashrc ]] && source ~/.bash
这一行的意思是当.bashrc不为空时source它
mac上是.profile
osx的终端是打开了一个login shell,也就是意味着这里
读取了~/.bash_profile,但是没有读取~/.bashrc。
要让打开终端时也读取~/.bashrc,就在~/.bash_profile当中加入这一行
[[ -s ~/.bashrc ]] && source ~/.bash
这一行的意思是当.bashrc不为空时source它
mac上是.profile