From 1d2baa4784bf68645defe88074e0ba6fee0498df Mon Sep 17 00:00:00 2001 From: Haak Saxberg Date: Wed, 19 Mar 2014 10:31:14 -0700 Subject: [PATCH] spacing in git prompt --- bash-files/bashrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash-files/bashrc b/bash-files/bashrc index 1d5abcf..941c4aa 100644 --- a/bash-files/bashrc +++ b/bash-files/bashrc @@ -22,24 +22,24 @@ parse_git_branch() { remote_pattern="# Your branch is (.*) of" diverge_pattern="# Your branch and (.*) have diverged" if [[ ! ${git_status} =~ "nothing to commit" ]]; then - state="${RED}!" + state=" ${RED}!" else state="" fi # add an else if or two here if you want to get more specific if [[ ${git_status} =~ ${remote_pattern} ]]; then if [[ ${BASH_REMATCH[1]} == "ahead" ]]; then - remote="${YELLOW}↑" + remote=" ${YELLOW}↑" else - remote="${YELLOW}↓" + remote=" ${YELLOW}↓" fi fi if [[ ${git_status} =~ ${diverge_pattern} ]]; then - remote="${YELLOW}↕" + remote=" ${YELLOW}↕" fi if [[ ${git_status} =~ ${branch_pattern} ]]; then branch=${BASH_REMATCH[1]} - echo " $RED(${branch} ${remote}${state}$RED) " + echo " $RED(${branch}${remote}${state}$RED) " fi }