Merge pull request #341 from rjorgenson/next

Fix #339
pull/22/head
Ben Hilburn 8 years ago committed by GitHub
commit afa256f5b3

@ -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

Loading…
Cancel
Save