summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rwxr-xr-xinternal/p10k.zsh3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 8c7bc45c..f6f01e1d 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -677,7 +677,8 @@ prompt_command_execution_time() {
if (( _P9K_COMMAND_DURATION < 60 )); then
if [[ $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION == 0 ]]; then
- local -i text=_P9K_COMMAND_DURATION
+ local -i sec=_P9K_COMMAND_DURATION
+ local text=${sec}s
else
local -F $POWERLEVEL9K_COMMAND_EXECUTION_TIME_PRECISION text=_P9K_COMMAND_DURATION
fi