This repository has been archived by the owner on Feb 3, 2021. It is now read-only.
Battery section: ACPI use only first battery value #124
Labels
D1 - Difficulty: Trivial
P2 - Priority: Medium
Status: In Progress
Status: Released
Type: Bug
Fix an existing bug
It appears this issue would also happen on spacefish, and the solution seems like a rather quick fix. π
When trying to show battery percentage with ACPI command having with multiple batteries causes bad math expression.
Fixes spaceship-prompt/spaceship-prompt#245
For the output of:
Original logic:
After piping
acpi -b
throughhead -1
:The text was updated successfully, but these errors were encountered: