diff options
author | Tim Otlik <t.otlik@vivaldi.net> | 2018-05-09 11:21:13 +0300 |
---|---|---|
committer | Tim Otlik <t.otlik@vivaldi.net> | 2018-05-09 11:21:13 +0300 |
commit | 238b231c3e9f76f5f2d50b2deab3696a99e2340e (patch) | |
tree | bbb520c02a3f08071dffb09f98fcdaf768d7f5c0 /powerlevel9k.zsh-theme | |
parent | 642034eef2b455aa75819e4c394cd4416206665b (diff) |
rename variable to POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD
Variable now holds an integer, if your battery status is greater or equal to this integer the
segment will be hidden
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 45d0cc25..4924d269 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -488,7 +488,7 @@ prompt_battery() { fi fi - if [[ "${POWERLEVEL9K_BATTERY_HIDE_FULL}" == "true" && "${bat_percent}" = 100 ]]; then + if [[ -v "POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD" && "${bat_percent}" -ge $POWERLEVEL9K_BATTERY_HIDE_ABOVE_THRESHOLD ]]; then return fi |