mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
Accidently broke linux, fixed it
This commit is contained in:
parent
ed65b4152d
commit
88389386f0
1 changed files with 1 additions and 1 deletions
|
|
@ -1509,7 +1509,7 @@ _p9k_prompt_battery_set_args() {
|
|||
|
||||
Linux)
|
||||
# Original Linux logic using /sys/class/power_supply
|
||||
local -a bats=( /sys/class/power_supply/(CMB*|BAT*|*battery)(N/) ) # N/ ensures we only get directories
|
||||
local -a bats=( /sys/class/power_supply/(CMB*|BAT*|*battery)(N) ) # N/ ensures we only get directories
|
||||
(( $#bats )) || return 1
|
||||
|
||||
local -i energy_now=0 energy_full=0 power_now=0 # Initialize to 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue