1
0
Fork 0
mirror of synced 2024-06-01 06:41:12 -04:00

Update init.zsh

Enable proper ahead / behind behavior

Fixes: #176
This commit is contained in:
ℳichiel ℛoos 2017-05-09 23:24:19 +02:00 committed by GitHub
parent 4ad8f8db8e
commit 31b797c2c3

View file

@ -178,7 +178,8 @@ git-info() {
local ahead_and_behind_cmd='command git rev-list --count --left-right HEAD...@{upstream}' local ahead_and_behind_cmd='command git rev-list --count --left-right HEAD...@{upstream}'
# Get ahead and behind counts. # Get ahead and behind counts.
local ahead_and_behind=$(${(z)ahead_and_behind_cmd} 2>/dev/null) local ahead_and_behind
ahead_and_behind=$(${(z)ahead_and_behind_cmd} 2>/dev/null)
local ahead=${ahead_and_behind[(w)1]} local ahead=${ahead_and_behind[(w)1]}
local behind=${ahead_and_behind[(w)2]} local behind=${ahead_and_behind[(w)2]}