1.进入你的home目录 cd ~ 2.编辑.bashrc文件 vi .bashrc 3.将下面的代码加入到文件的最后处 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`" if [ "${branch}" != "" ];then if [ "${branch}&
mac 终端显示 ,0x7fff73dbd300) malloc: *** error for object 0x7fce52d15100: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug[进程已完成] 用磁盘工具修复下权限就好了... 参考:https://www.zhihu.com/question/38477086 https://www.v2ex.com/