1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-16 09:50:06 +00:00

silly typos

This commit is contained in:
romkatv 2019-07-16 20:38:28 +02:00
parent ccfc462faf
commit 428665e551

View file

@ -897,15 +897,15 @@ prompt_command_execution_time() {
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_DISABLE_FORMATTING == true ]]; then
local text=''
else
if (( _P9K_COMMAND_DURATION < 60 )); then
if (( P9K_COMMAND_DURATION_SECONDS < 60 )); then
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; then
local -i sec=$((_P9K_COMMAND_DURATION + 0.5))
local -i sec=$((P9K_COMMAND_DURATION_SECONDS + 0.5))
else
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=_P9K_COMMAND_DURATION
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=P9K_COMMAND_DURATION_SECONDS
fi
local text=${sec}s
else
local -i d=_P9K_COMMAND_DURATION
local -i d=$((P9K_COMMAND_DURATION_SECONDS + 0.5))
local text=${(l.2..0.)$((d % 60))}
if (( d >= 60 )); then
text=${(l.2..0.)$((d / 60 % 60))}:$text