From 6c53fa777ead4907da40c02a37683dcaa5dcdb75 Mon Sep 17 00:00:00 2001 From: Jacobi Carter Date: Tue, 25 Sep 2012 19:00:00 -0500 Subject: [PATCH] Fix. --- zsh/prompt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/prompt b/zsh/prompt index f932c31..edc176c 100755 --- a/zsh/prompt +++ b/zsh/prompt @@ -143,12 +143,12 @@ function updateprompt () { if [[ -n ${remote} ]] ; then # for git prior to 1.7 # ahead=$(git rev-list origin/${hook_com[branch]}..HEAD | wc -l) - local ahead=$(git rev-list ${branch}@{upstream}..HEAD 2>/dev/null | wc -l) + local ahead="$(git rev-list ${branch}@{upstream}..HEAD 2>/dev/null | wc -l)" gitstatus+=( "${GREEN}+${ahead}${GRAY}" ) # for git prior to 1.7 # behind=$(git rev-list HEAD..origin/${hook_com[branch]} | wc -l) - local behind=$(git rev-list HEAD..${branch}@{upstream} 2>/dev/null | wc -l) + local behind="$(git rev-list HEAD..${branch}@{upstream} 2>/dev/null | wc -l)" gitstatus+=( "${RED}-${behind}${GRAY}" ) remotepart="${RESETCOLOR}${GRAY}[${remote} ${(j:/:)gitstatus}]${RESETCOLOR}"