1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-24 16:11:57 +00:00
This commit is contained in:
romkatv 2020-02-05 09:52:53 +01:00
parent f7645af7e3
commit 27b25196d8

View file

@ -1312,6 +1312,7 @@ _p9k_prompt_battery_set_args() {
;;
Linux|Android)
# See https://sourceforge.net/projects/acpiclient.
local -a bats=( /sys/class/power_supply/(BAT*|battery)/(FN) )
(( $#bats )) || return