aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorDan Miller <dnmiller@gmail.com>2016-06-17 08:33:09 +0300
committerDan Miller <dnmiller@gmail.com>2016-06-17 08:33:09 +0300
commit19ccfa64eb37541793c16e68ab7c519819d91ba6 (patch)
treed4237787ba201e090f0f831c3c580a03107ae615 /powerlevel9k.zsh-theme
parentcef8c65586c92a6c696b497c0d4ddd6610db203e (diff)
Add option for non-verbose battery
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 2 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index d5c2c8bb..c4b74c9c 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -419,6 +419,8 @@ prompt_battery() {
set_default POWERLEVEL9K_BATTERY_VERBOSE true
if [[ "$POWERLEVEL9K_BATTERY_VERBOSE" == true ]]; then
message="$bat_percent%%$remain"
+ else
+ message="$bat_percent%%"
fi
# Draw the prompt_segment