Powerlevel9k / powerlevel9k

Powerlevel9k was a tool for building a beautiful and highly functional CLI, customized for you. P9k had a substantial impact on CLI UX, and its legacy is now continued by P10k.
https://github.com/romkatv/powerlevel10k
MIT License
13.47k stars 947 forks source link

[Bugfix] Makes `P9K_BATTERY_LEVEL_BACKGROUND` and `P9K_BATTERY_STAGES` usable separately #1247

Closed Syphdias closed 5 years ago

Syphdias commented 5 years ago

This merely removes the extra checking for P9K_BATTERY_LEVEL_BACKGROUND AND P9K_BATTERY_STAGES being set at the same time. (here)

The variables are checked independently anyway since the features are independent. Fixes #1245

dritter commented 5 years ago

Pinging @onaforeignshore . I think you wrote the code originally. Could you have a look?

Syphdias commented 5 years ago

I might have found another bug when using P9K_BATTERY_STAGES as an array while writing tests. Ironically that was when the battery of my laptop died.

dritter commented 5 years ago

Thanks @Syphdias !