首页 > TAG信息列表 > setaf
【mac】设置命令行可以显示【项目名】【分支】
1、 sudo vim ~/.bashrc 2、复制进去 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`" if [ "${branch}" != "" ];then if [ "${branch}" = "(【mac】设置命令行可以显示【项目名】【分支】
1、 sudo vim ~/.bashrc 2、复制进去 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`" if [ "${branch}" != "" ];then if [ "${branch}" = "(