summaryrefslogtreecommitdiff
path: root/.bash-powerline.sh
diff options
context:
space:
mode:
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