mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-22 04:10:07 +00:00
powerlevel-9k: fixing the spacing in the vcs segment
This commit is contained in:
parent
416129dfe4
commit
cfa8d2558e
1 changed files with 20 additions and 16 deletions
|
@ -10,16 +10,6 @@
|
||||||
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts).
|
# [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
|
### Segment drawing
|
||||||
# A few utility functions to make it easy and re-usable to draw segmented prompts
|
# 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=''
|
LEFT_SEGMENT_SEPARATOR=''
|
||||||
RIGHT_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
|
# Prompt Segment Constructors
|
||||||
################################################################
|
################################################################
|
||||||
|
|
Loading…
Reference in a new issue