diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-02 11:39:35 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-02 11:39:35 +0300 |
commit | e0ed693e6dcf01a1e0d104ca10d23d1a76b89153 (patch) | |
tree | cd8d77e2cd0fe3a9937b2245111cf523a3b9d5b9 /internal/p10k.zsh | |
parent | be66f21f5338ae9243403ce37a7a03931617648f (diff) |
add `CMB*` to battery directory patterns; see #858
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index b59f86d2..962ebd4f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1270,7 +1270,7 @@ _p9k_prompt_battery_init() { return fi if [[ $_p9k_os != (Linux|Android) || - -z /sys/class/power_supply/(BAT*|battery)/(energy_full|charge_full|charge_counter)(#qN) ]]; then + -z /sys/class/power_supply/(CMB*|BAT*|battery)/(energy_full|charge_full|charge_counter)(#qN) ]]; then typeset -g "_p9k__segment_cond_${_p9k__prompt_side}[_p9k__segment_index]"='${:-}' fi } @@ -1328,7 +1328,7 @@ _p9k_prompt_battery_set_args() { Linux|Android) # See https://sourceforge.net/projects/acpiclient. - local -a bats=( /sys/class/power_supply/(BAT*|battery)/(FN) ) + local -a bats=( /sys/class/power_supply/(CMB*|BAT*|battery)/(FN) ) (( $#bats )) || return local -i energy_now energy_full power_now |