diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2020-01-26 17:18:25 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2020-01-26 17:18:25 +0300 |
commit | fa4d151f94dd8194326b0150cbba1318836917ef (patch) | |
tree | 8d611e23f56b5840ff5bfb7c053a8cd3fdd49ffa /internal/p10k.zsh | |
parent | b9cfa4e7ff640ec4ed5a4c4f3fe37002ac1201fc (diff) |
cleanup
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
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="..." |