|
|
|
@ -55,11 +55,11 @@ local 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
|
|
|
|
|
if [[ -n $POWERLEVEL9K_CHANGESET_HASH_LENGTH ]]; then
|
|
|
|
|
VCS_CHANGESET_HASH_LENGTH=$POWERLEVEL9K_CHANGESET_HASH_LENGTH
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
VCS_CHANGESET_PREFIX="%F{$DEFAULT_COLOR_DARK}%$VCS_CHANGESET_HASH_LENGTH.$VCS_CHANGESET_HASH_LENGTH""i@%f"
|
|
|
|
|
if [[ -n $POWERLEVEL9K_CHANGESET_HASH_LENGTH ]]; then
|
|
|
|
|
VCS_CHANGESET_HASH_LENGTH=$POWERLEVEL9K_CHANGESET_HASH_LENGTH
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
VCS_CHANGESET_PREFIX="%F{$DEFAULT_COLOR_DARK}%0.$VCS_CHANGESET_HASH_LENGTH""i@%f"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
zstyle ':vcs_info:*' enable git hg
|
|
|
|
|