diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-07-16 11:37:30 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-07-16 11:37:30 +0300 |
commit | e986f0a96cffdadd7489e1db2a1c9e6418520b30 (patch) | |
tree | 4b83a5af8909f8386967af1f6c93d304abbe3942 /internal/p10k.zsh | |
parent | 38da6a3c9b9dbdd3c93fce2c543f2cf4939193ea (diff) |
replace POWERLEVEL9K_BATTERY_STAGES hack with proper code
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-x | internal/p10k.zsh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index c7cc6c4d..87496aa0 100755 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -792,8 +792,7 @@ prompt_battery() { if (( $#POWERLEVEL9K_BATTERY_STAGES )); then local -i idx=$#POWERLEVEL9K_BATTERY_STAGES (( bat_percent < 100 )) && idx=$((bat_percent * $#POWERLEVEL9K_BATTERY_STAGES / 100 + 1)) - icon+=_$idx - typeset -g POWERLEVEL9K_$icon=$POWERLEVEL9K_BATTERY_STAGES[idx] + icon=$'\1'${(g::)POWERLEVEL9K_BATTERY_STAGES[idx]} fi local bg=$DEFAULT_COLOR |