Mac下“.bashrc”不生效2016年06月29日 24 字 - 1 分钟新建"~/.bash_profile",写入下面代码:1 2 3 if [ "${BASH-no}" != "no" ]; then [ -r ~/.bashrc ] && . ~/.bashrc fi 原因是执行.bashrc需要执行login shell, 而Mac启动时不会执行login shell,打开terminal也不会执行login shell标签:Linuxbashrc分类:LinuxPlease enable JavaScript to view the comments powered by Disqus.comments powered by Disqus