mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 15:54:40 +00:00
powerlevel-9k: fixing the spacing in the vcs segment
This commit is contained in:
+14
-10
@@ -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
|
||||||
################################################################
|
################################################################
|
||||||
|
|||||||
Reference in New Issue
Block a user