1
0
Fork 0
mirror of synced 2024-11-30 03:05:35 -05:00

Make ahead/behind work in git-info/init.zsh

This commit is contained in:
ℳichiel ℛoos 2017-05-10 09:50:38 +02:00 committed by GitHub
parent 31b797c2c3
commit 030c8cc342

View file

@ -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]}