mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
silly typos
This commit is contained in:
parent
ccfc462faf
commit
428665e551
@ -897,15 +897,15 @@ prompt_command_execution_time() {
|
|||||||
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_DISABLE_FORMATTING == true ]]; then
|
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_DISABLE_FORMATTING == true ]]; then
|
||||||
local text=''
|
local text=''
|
||||||
else
|
else
|
||||||
if (( _P9K_COMMAND_DURATION < 60 )); then
|
if (( P9K_COMMAND_DURATION_SECONDS < 60 )); then
|
||||||
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; 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
|
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
|
fi
|
||||||
local text=${sec}s
|
local text=${sec}s
|
||||||
else
|
else
|
||||||
local -i d=_P9K_COMMAND_DURATION
|
local -i d=$((P9K_COMMAND_DURATION_SECONDS + 0.5))
|
||||||
local text=${(l.2..0.)$((d % 60))}
|
local text=${(l.2..0.)$((d % 60))}
|
||||||
if (( d >= 60 )); then
|
if (( d >= 60 )); then
|
||||||
text=${(l.2..0.)$((d / 60 % 60))}:$text
|
text=${(l.2..0.)$((d / 60 % 60))}:$text
|
||||||
|
Loading…
Reference in New Issue
Block a user