From c41556cc2ab5c0a8c1f961bd4d80a90c96bc23c2 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 5 Oct 2015 21:08:13 +0200 Subject: [PATCH] Allow themes to define VCS info spacing --- core/50_prompt/50_prompt.zshrc | 4 ++-- plugins/git/git.zshrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/50_prompt/50_prompt.zshrc b/core/50_prompt/50_prompt.zshrc index 4dda1f7..39c47a3 100644 --- a/core/50_prompt/50_prompt.zshrc +++ b/core/50_prompt/50_prompt.zshrc @@ -59,8 +59,8 @@ ZSH_THEME_VCS_PROMPT_PREFIX="%{$fg_no_bold[yellow]%}" ZSH_THEME_VCS_PROMPT_SUFFIX="%{$reset_color%}" ZSH_THEME_VCS_PROMPT_SUFFIX_SPACING=")" -ZSH_THEME_VCS_PROMPT_CLEAN="%{$fg_no_bold[green]%}✔" -ZSH_THEME_VCS_PROMPT_DIRTY="%{$fg_no_bold[red]%}✘" +ZSH_THEME_VCS_PROMPT_CLEAN=" %{$fg_no_bold[green]%}✔" +ZSH_THEME_VCS_PROMPT_DIRTY=" %{$fg_no_bold[red]%}✘" ZSH_THEME_VCS_PROMPT_AHEAD="%{$fg_no_bold[cyan]%}→" ZSH_THEME_VCS_PROMPT_BEHIND="%{$fg_no_bold[blue]%}←" diff --git a/plugins/git/git.zshrc b/plugins/git/git.zshrc index dedce7e..441d660 100644 --- a/plugins/git/git.zshrc +++ b/plugins/git/git.zshrc @@ -38,7 +38,7 @@ git_prompt_behind() { git_prompt() { ref=$(git symbolic-ref HEAD 2>/dev/null) || return 1 - echo "${ref#refs/heads/} $(git_parse_dirty)$(git_prompt_ahead)$(git_prompt_behind)" + echo "${ref#refs/heads/}$(git_parse_dirty)$(git_prompt_ahead)$(git_prompt_behind)" return 0 } -- 2.39.2