1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-09 00:40:41 +01:00

timer: threshold to show timers only for time-consuming commands (#8151)

This commit is contained in:
Frederick Zhang
2020-07-15 02:53:37 +10:00
committed by GitHub
parent 68b98c9d53
commit ff7618cf74
2 changed files with 6 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ This plugin allows to display command's execution time in a very nonintrusive wa
Timer can be tuned by these two variables:
* `TIMER_PRECISION` allows to control number of decimal places (default `1`)
* `TIMER_FORMAT` allows to adjust display format (default `'/%d'`)
* `TIMER_THRESHOLD` allows to set the minimum execution time that causes the timer to be shown (default `0`)
Sample session: