Fix bash git prompt branch names
This commit is contained in:
parent
a1a5a8b2f1
commit
3e6635e3ba
1 changed files with 1 additions and 1 deletions
2
bashrc
2
bashrc
|
@ -52,7 +52,7 @@ git__prompt () {
|
|||
fi
|
||||
echo -ne ' \033[00;33mδ'
|
||||
status=`git status --short 2>/dev/null`
|
||||
branch=`git branch | grep -Po '(?<=\* )[[:alnum:]_-]*'`
|
||||
branch=`git branch | grep -Po '(?<=\* )[[:alnum:]_.-]*'`
|
||||
modif=`echo "$status" | grep -Po '^\s*M' | wc -l`
|
||||
untracked=`echo "$status" | grep -Po '^\?\?' | wc -l`
|
||||
added=`echo "$status" | grep -Po '^\s*[A]' | wc -l`
|
||||
|
|
Loading…
Reference in a new issue