标签:
unix系统中, 常用的初始化脚本有两个:.bashrc 和 .bash_profile,比较容易混淆。
这两个脚本的主要区别在于,触发执行的条件不一样:
一般来说,为了防止 .bash_profile 和 .bashrc 两个脚本的内容有重合,可以在 .bash_profile 中加入以下内容:
if [ -f ~/.bashrc ]; then source ~/.bashrc fi
标签:
原文地址:http://www.cnblogs.com/cbffr/p/4616707.html