新建空的bash_profile之后,终端配色失效,需要先加载bashrc,在bash_profile中添加如下内容:

if [ -f ~/.bashrc ]; then
  . ~/.bashrc
fi