From fa4d151f94dd8194326b0150cbba1318836917ef Mon Sep 17 00:00:00 2001 From: romkatv Date: Sun, 26 Jan 2020 15:18:25 +0100 Subject: [PATCH] cleanup --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c6eb7744..9d913278 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -1174,7 +1174,7 @@ _p9k_prompt_battery_set_args() { case $_p9k_os in OSX) (( $+commands[pmset] )) || return - local raw_data=${${(f)"$(pmset -g batt 2>/dev/null)"}[2]} + local raw_data=${${(Af)"$(pmset -g batt 2>/dev/null)"}[2]} [[ $raw_data == *InternalBattery* ]] || return remain=${${(s: :)${${(s:; :)raw_data}[3]}}[1]} [[ $remain == *no* ]] && remain="..."