From 030c8cc3427753631b1bb62778011d2a8f36d2b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=84=B3ichiel=20=E2=84=9Boos?= Date: Wed, 10 May 2017 09:50:38 +0200 Subject: [PATCH] Make ahead/behind work in git-info/init.zsh --- modules/git-info/init.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/git-info/init.zsh b/modules/git-info/init.zsh index 27ee22d..7b087a1 100644 --- a/modules/git-info/init.zsh +++ b/modules/git-info/init.zsh @@ -179,7 +179,7 @@ git-info() { # Get ahead and behind counts. local ahead_and_behind - ahead_and_behind=$(${(z)ahead_and_behind_cmd} 2>/dev/null) + ahead_and_behind=${(z)$(${ahead_and_behind_cmd} 2>/dev/null)} local ahead=${ahead_and_behind[(w)1]} local behind=${ahead_and_behind[(w)2]}