aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorRaul Benencia <id@rbenencia.name>2023-01-23 08:19:32 -0800
committerRaul Benencia <id@rbenencia.name>2023-01-23 08:19:32 -0800
commit4ce31be06b41a25d557725844123e79507267b63 (patch)
treeaa388a6c8c9ce617e55db8762ef52cb9cf3c009c /.bashrc
parent7656741090f8bdaff176cf7127944cc58b24ce68 (diff)
bash: fix git branch to support /
Diffstat (limited to '.bashrc')
-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