1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-22 15:21:56 +00:00

Merge pull request #71 from Syphdias/symlink-batteries

battery segment for symlinkers
This commit is contained in:
Roman Perepelitsa 2019-05-23 23:54:52 +02:00 committed by GitHub
commit 3ce1099183
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -494,7 +494,7 @@ prompt_battery() {
;;
Linux|Android)
local -a bats=( /sys/class/power_supply/(BAT*|battery)(FN) )
local -a bats=( /sys/class/power_supply/(BAT*|battery)/(FN) )
(( $#bats )) || return
local -i energy_now energy_full power_now