mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] performance messages coloring improvements
This commit is contained in:
parent
e80379a2e5
commit
85f880db9e
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ autoload -U colors && colors
|
||||||
fi
|
fi
|
||||||
local stop_time="$EPOCHREALTIME" start_time="${_perf_timers[$name]}"
|
local stop_time="$EPOCHREALTIME" start_time="${_perf_timers[$name]}"
|
||||||
local -i duration="$(( (stop_time - start_time) * 1000 ))"
|
local -i duration="$(( (stop_time - start_time) * 1000 ))"
|
||||||
print -- "\e[${color[faint]}m==>${reset_color} ${name}: ${duration}ms"
|
print -- "$(print -P '%F{8}==>%f') ${name}: ${duration}ms"
|
||||||
}
|
}
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in a new issue