summaryrefslogtreecommitdiff
path: root/internal/p10k.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-07-14 16:44:56 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-07-14 16:44:56 +0300
commit26a8b17f6efc2d3b0723c8e7313413d408d58b1b (patch)
tree74d65e7af255b1ba0c2380e6f6d0fffddeeee7ef /internal/p10k.zsh
parent7acc5a236d038d175af440dedc0dd8d540c0c2fe (diff)
1.23s instead of 1.23 in command_execution_time
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 1053f71c..417278dd 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -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))}