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

@ -90,7 +90,7 @@ prompt_git() {
zstyle ':vcs_info:*' formats ' %u%c' zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats ' %u%c' zstyle ':vcs_info:*' actionformats ' %u%c'
vcs_info vcs_info
echo -n "${ref/refs\/heads\//⭠ }${vcs_info_msg_0_}" echo -n "${ref/refs\/heads\//⭠ }${vcs_info_msg_0_%% }"
fi fi
} }