vim ~/.bashrc
# git branch show configuration PS1="\w:$(git branch 2>/dev/null | grep '^*' | colrm 1 2)$ "
现在重新打开一个终端,就能看到所在的分支啦.
vim ~/.bashrc
# git branch show configuration PS1="\w:$(git branch 2>/dev/null | grep '^*' | colrm 1 2)$ "
现在重新打开一个终端,就能看到所在的分支啦.