summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-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))}