theme agnoster: remove trailing space if there is no change in repository and nether dot nor plus are show

This commit is contained in:
Daniel Tschinder 2013-04-25 10:45:07 +02:00
commit c3dac57fa1

View file

@ -88,9 +88,9 @@ prompt_git() {
zstyle ':vcs_info:*' stagedstr '✚'
zstyle ':vcs_info:git:*' unstagedstr '●'
zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats '%u%c'
zstyle ':vcs_info:*' actionformats ' %u%c'
vcs_info
echo -n "${ref/refs\/heads\//⭠ }${vcs_info_msg_0_}"
echo -n "${ref/refs\/heads\//⭠ }${vcs_info_msg_0_%% }"
fi
}