mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-01-03 04:33:16 +02:00
Git tag not replacing branch
This commit is contained in:
parent
2d3131fb8a
commit
b46a96a7ce
@ -64,7 +64,7 @@ function +vi-git-tagname() {
|
|||||||
local tag
|
local tag
|
||||||
|
|
||||||
tag=$(git describe --tags --exact-match HEAD 2>/dev/null)
|
tag=$(git describe --tags --exact-match HEAD 2>/dev/null)
|
||||||
[[ -n "${tag}" ]] && hook_com[branch]="$(print_icon 'VCS_TAG_ICON')${tag}"
|
[[ -n "${tag}" ]] && hook_com[branch]+=" $(print_icon 'VCS_TAG_ICON')${tag}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Show count of stashed changes
|
# Show count of stashed changes
|
||||||
|
Loading…
Reference in New Issue
Block a user