summaryrefslogtreecommitdiff
path: root/config/p10k-rainbow.zsh
diff options
context:
space:
mode:
authorRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-03-09 14:20:28 +0300
committerRoman Perepelitsa <roman.perepelitsa@gmail.com>2021-03-09 14:20:28 +0300
commitd28e84ca7061c43c49c91059d15b49bc5859a3a7 (patch)
treee4c8f5cb5307c1cf57c46d8b57d97a6980ecbf2a /config/p10k-rainbow.zsh
parent6d545d5dd06bd85bbfda5cc8fd7938aee4b79d55 (diff)
don't display git tag when on a branch (#1294)
Diffstat (limited to 'config/p10k-rainbow.zsh')
-rw-r--r--config/p10k-rainbow.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh
index 06d1426d..a47fb18e 100644
--- a/config/p10k-rainbow.zsh
+++ b/config/p10k-rainbow.zsh
@@ -405,7 +405,7 @@
# Display the current Git commit if there is no branch and no tag.
# Tip: To always display the current Git commit, delete the next line.
- [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_LOCAL_BRANCH ]] && # <-- this line
+ [[ -z $VCS_STATUS_LOCAL_BRANCH && -z $VCS_STATUS_TAG ]] && # <-- this line
res+="${meta}@${clean}${VCS_STATUS_COMMIT[1,8]}"
# Show tracking branch name if it differs from local branch.