other method for current branch

This commit is contained in:
TheK4n 2021-09-01 20:57:25 +03:00
parent 666a49c514
commit 6f1c6f9887

View File

@ -1,7 +1,7 @@
parse_git_branch() { parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' git branch --show-current 2> /dev/null
} }