aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjorgenson <rjorgenson@gmail.com>2016-12-20 02:34:08 +0300
committerrjorgenson <rjorgenson@gmail.com>2016-12-20 02:34:08 +0300
commit4568c3490d1c54264c916e9af1e910c766a37b20 (patch)
treec504ea24044db9846f272f14d3aecbe73ac65f50
parent16283fc8ee5c2f249723ed185abe70a111e479ca (diff)
added a comment
-rwxr-xr-xpowerlevel9k.zsh-theme1
1 files changed, 1 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 13e308bc..b440b0a3 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -358,6 +358,7 @@ prompt_battery() {
# Time remaining on battery operation (charging/discharging)
local tstring=$(echo $raw_data | awk 'FNR==2{print $5}')
+ # If time has not been calculated by system yet
[[ $tstring =~ '\(no' ]] && tstring="..."
# percent of battery charged