aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
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}"
}
nihil fit ex nihilo