From 92e04936370450c3170fa341ba9b6313b1c80268 Mon Sep 17 00:00:00 2001 From: Yehor Lvivski Date: Mon, 23 Sep 2013 17:48:35 +0300 Subject: [PATCH] fix spacing --- prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prompt.sh b/prompt.sh index 20d653b..c4d3ef1 100644 --- a/prompt.sh +++ b/prompt.sh @@ -150,13 +150,13 @@ function build_prompt { fi if [[ ${has_diverged} == true ]]; then - PS1="${PS1} -${commits_behind} ${has_diverged_symbol} +${commits_ahead}" + PS1="${PS1} -${commits_behind} ${has_diverged_symbol} +${commits_ahead} " else if [[ ${commits_behind} -gt 0 ]]; then PS1="${PS1} ${on} -${commits_behind} ${can_fast_forward_symbol} " fi if [[ ${commits_ahead} -gt 0 ]]; then - PS1="${PS1} ${on} ${should_push_symbol} +${commits_ahead}" + PS1="${PS1} ${on} ${should_push_symbol} +${commits_ahead} " fi fi PS1="${PS1}(${green}${current_branch}${reset} ${type_of_upstream} ${upstream//\/$current_branch/})"