mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-18 08:20:10 +00:00
comments
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user