如何在bash命令行首加入git标示

如题所述

PS1='`git status | grep 位于分支|cut -d " " -f 2`'
把`xxx`的命令加入PS1
温馨提示:内容为网友见解,仅供参考
无其他回答
相似回答