关于mac下自动加载~/.bashrc
mac默认不会加载~/.bashrc,所以要自己在/etc/profile文件中增加一下内容(root权限):
if [ -f ~/.bashrc ] ; then. .bashrcfi加这么几行后,打开终端,就会自动加载~/.bashrc了