From 88389386f0971cbaf1c4935fc4458e5e4036bae2 Mon Sep 17 00:00:00 2001 From: Don Collins Date: Fri, 9 May 2025 08:43:51 -0700 Subject: [PATCH] Accidently broke linux, fixed it --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 14d426a2..309db1af 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -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