git-tagname: Now showing hash/branchname when sitting on a tag

This commit is contained in:
Ben Hilburn 2016-04-12 10:43:34 -04:00
commit 0f4e3e7588
2 changed files with 10 additions and 11 deletions

View file

@ -832,8 +832,8 @@ prompt_vcs() {
VCS_CHANGESET_PREFIX=''
if [[ "$POWERLEVEL9K_SHOW_CHANGESET" == true ]]; then
# Default: Just display the first 12 characters of our changeset-ID.
local VCS_CHANGESET_HASH_LENGTH=12
# Default: Just display the first 8 characters of our changeset-ID.
local VCS_CHANGESET_HASH_LENGTH=8
if [[ -n "$POWERLEVEL9K_CHANGESET_HASH_LENGTH" ]]; then
VCS_CHANGESET_HASH_LENGTH="$POWERLEVEL9K_CHANGESET_HASH_LENGTH"
fi