mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 09:50:06 +00:00
1.23s instead of 1.23 in command_execution_time
This commit is contained in:
parent
7acc5a236d
commit
26a8b17f6e
1 changed files with 2 additions and 2 deletions
|
@ -927,10 +927,10 @@ prompt_command_execution_time() {
|
|||
if (( _P9K_COMMAND_DURATION < 60 )); then
|
||||
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; then
|
||||
local -i sec=_P9K_COMMAND_DURATION
|
||||
local text=${sec}s
|
||||
else
|
||||
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION text=_P9K_COMMAND_DURATION
|
||||
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION sec=_P9K_COMMAND_DURATION
|
||||
fi
|
||||
local text=${sec}s
|
||||
else
|
||||
local -i d=_P9K_COMMAND_DURATION
|
||||
local text=${(l.2..0.)$((d % 60))}
|
||||
|
|
Loading…
Reference in a new issue