Zsh plugin for displays command duration when exceeds threshold.
If you use zplug, add the following to your .zshrc
:
zplug "rtakasuke/zsh-duration"
git clone https://github.com/rtakasuke/zsh-duration.git
source ./zsh-duration/duration.plugin.zsh
You can change the display threshold with environment variables. (Default: 10 seconds)
export ZSH_DURATION_THRESHOLD=10