mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-12 08:10:07 +00:00
commit
afa256f5b3
1 changed files with 1 additions and 1 deletions
|
@ -409,7 +409,7 @@ prompt_battery() {
|
||||||
local time_remaining=$(acpi | awk '{ print $5 }')
|
local time_remaining=$(acpi | awk '{ print $5 }')
|
||||||
if [[ $time_remaining =~ rate ]]; then
|
if [[ $time_remaining =~ rate ]]; then
|
||||||
local tstring="..."
|
local tstring="..."
|
||||||
elif [[ $time_remaining =~ "[:digit:]+" ]]; then
|
elif [[ $time_remaining =~ "[[:digit:]]+" ]]; then
|
||||||
local tstring=${(f)$(date -u -d "$(echo $time_remaining)" +%k:%M)}
|
local tstring=${(f)$(date -u -d "$(echo $time_remaining)" +%k:%M)}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue