From 128ae0c4aebaca61c4479c71fda6d2096897bf6e Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Tue, 23 Jun 2020 07:32:51 -0400 Subject: [PATCH] Adding moving a space around in the prompt for git repos --- zsh/.zsh/prompt.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh index b62b32b..79d22fa 100644 --- a/zsh/.zsh/prompt.zsh +++ b/zsh/.zsh/prompt.zsh @@ -5,7 +5,7 @@ function git_prompt { local FULL_BRANCH="$(git symbolic-ref -q HEAD 2>/dev/null || git name-rev --name-only --no-undefined --always HEAD 2>/dev/null)" PBRANCH="$(echo $FULL_BRANCH | sed 's/refs\/heads\///')" if [ -n $PBRANCH ]; then - echo -n " ${PBRANCH}" + echo -n " ${PBRANCH} " # Are there unstaged changes in the working directory local CHANGED=$(git status --porcelain --ignore-submodule -unormal 2>/dev/null | wc -l) if [ $CHANGED -gt 0 ]; then @@ -23,7 +23,7 @@ function git_prompt { fi if [[ -n $PCHANGED || -n $PAHEAD || -n $PBEHIND ]]; then - echo -n " ${PCHANGED}${PBEHIND}${PAHEAD} " + echo -n "${PCHANGED}${PBEHIND}${PAHEAD} " fi fi }