summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-05-31 14:08:37 +0200
committerMarc Vertes <mvertes@free.fr>2025-05-31 14:08:37 +0200
commitcd3dfb2203f091d7781fac890e039eb5ca10ade1 (patch)
tree189b092bddb803dd8d20c63f525483b07ef1f4cc /.bash-powerline.sh
parenteedc0cd9bba63b31402884aab505a2fbab688490 (diff)
update
Diffstat (limited to '.bash-powerline.sh')
-rw-r--r--.bash-powerline.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index 6d2ee2d..dbc36c2 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -42,6 +42,7 @@ __powerline() {
else
# get tag name or short unique hash
ref=$($git_eng describe --tags --always 2>/dev/null)
+ [[ -n "$ref" ]] && ref="^$ref"
fi
[[ -n "$ref" ]] || return # not a git repo