1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-21 20:00:07 +00:00

powerlevel-9k: fixing the spacing in the vcs segment

This commit is contained in:
Ben Hilburn 2015-01-26 19:38:56 -08:00
parent 416129dfe4
commit cfa8d2558e

View file

@ -10,16 +10,6 @@
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
#
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr '%F{black}✚%f'
zstyle ':vcs_info:git:*' unstagedstr '%F{black}●%f'
zstyle ':vcs_info:git*' actionformats " %b %F{red}| %a%f"
zstyle ':vcs_info:git*' formats " %b %c%u%m"
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked git-aheadbehind git-remotebranch git-tagname
zstyle ':vcs_info:*' enable git
### Segment drawing
# A few utility functions to make it easy and re-usable to draw segmented prompts
@ -33,6 +23,20 @@ CURRENT_BG='NONE'
LEFT_SEGMENT_SEPARATOR=''
RIGHT_SEGMENT_SEPARATOR=''
################################################################
# vcs_info settings for git
################################################################
setopt prompt_subst
autoload -Uz vcs_info
zstyle ':vcs_info:*' stagedstr ' %F{black}✚%f'
zstyle ':vcs_info:git:*' unstagedstr ' %F{black}●%f'
zstyle ':vcs_info:git*' actionformats " %b %F{red}| %a%f"
zstyle ':vcs_info:git*' formats " %b%c%u%m"
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:git*+set-message:*' hooks git-untracked git-aheadbehind git-remotebranch git-tagname
zstyle ':vcs_info:*' enable git
################################################################
# Prompt Segment Constructors
################################################################