最近使用Ubuntu14.04的开发环境,发现配置了~/.bash_profile后,每次打开终端都需要再次运行soruce ~/.bash_profile后才能生效。 在~/.bashrc 中增加 if test -f .bash_profile;then source .bash_profile fi 然后就可以生效了 终端启动默认加载的文件是 ~/.bash_profile