From 6f1c6f9887631c3e9e785148ef79ef63a359aa04 Mon Sep 17 00:00:00 2001 From: Pendosv Date: Wed, 1 Sep 2021 20:57:25 +0300 Subject: [PATCH] other method for current branch --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 8498830..3299703 100644 --- a/.bashrc +++ b/.bashrc @@ -1,7 +1,7 @@ parse_git_branch() { - git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' + git branch --show-current 2> /dev/null }