diff options
author | Ben Hilburn <bhilburn@gmail.com> | 2016-11-29 02:36:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-29 02:36:20 +0300 |
commit | afa256f5b32babbd72ae70e888919eb801963873 (patch) | |
tree | 8fe20537469ae0710c88313f5b7ca8c54e035aaf | |
parent | 352ad4d60833cc36f8835fb2926d41813c495691 (diff) | |
parent | 6ed6ba876eeda6eb85535ca4cbbbb4bad206a9b3 (diff) |
Merge pull request #341 from rjorgenson/next
Fix #339
-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 7e68af2b..da3639e1 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -409,7 +409,7 @@ prompt_battery() { local time_remaining=$(acpi | awk '{ print $5 }') if [[ $time_remaining =~ rate ]]; then local tstring="..." - elif [[ $time_remaining =~ "[:digit:]+" ]]; then + elif [[ $time_remaining =~ "[[:digit:]]+" ]]; then local tstring=${(f)$(date -u -d "$(echo $time_remaining)" +%k:%M)} fi fi |