Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Reimplement fix for #124
Browse files Browse the repository at this point in the history
  • Loading branch information
matchai committed Jan 9, 2019
1 parent d837fb6 commit 6053cdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/__sf_section_battery.fish
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function __sf_section_battery -d "Displays battery symbol and charge"

# Windows machines.
else if type -q acpi
set -l battery_data (acpi -b 2>/dev/null)
set -l battery_data (acpi -b 2>/dev/null | head -1)

# Return if no battery
[ -z $battery_data ]; and return
Expand Down

0 comments on commit 6053cdb

Please sign in to comment.