Fix darwin battery info field selection
authorGarrett Holmstrom <gholms@devzero.com>
Fri, 22 May 2020 06:17:43 +0000 (23:17 -0700)
committerGarrett Holmstrom <gholms@devzero.com>
Fri, 22 May 2020 06:17:43 +0000 (23:17 -0700)
commit640f2a04330b690a0ed829b4dc47de442ce55c9f
treea1514a88df1b7f1b4b8a5bf0bcd77d9ac0299f7e
parent1d927f2f77c896a86c0176bd878bd13075cdc87e
Fix darwin battery info field selection

The batterydarwin function looks for the info it wants using field
numbers that are off by one on the current version of Mac OS.  I'm not
sure which version this changed in or what exactly they added (I suspect
it is the battery ID), but this patch makes battery info start working
again.
etc/zsh/zshrc