From 4ce31be06b41a25d557725844123e79507267b63 Mon Sep 17 00:00:00 2001 From: Raul Benencia Date: Mon, 23 Jan 2023 08:19:32 -0800 Subject: bash: fix git branch to support / --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index b11573e..11c2b67 100644 --- a/.bashrc +++ b/.bashrc @@ -99,7 +99,7 @@ prompt_command_notitle () { if [ "$fullbranch" = "" ]; then local fullbranch="$(git symbolic-ref HEAD 2>/dev/null)" fi - local branch="${fullbranch##*/}" + local branch="${fullbranch#ref: refs/heads/}" vcsinfo="${branch:+#$branch}" } -- cgit v1.2.3