小编ear*_*arl的帖子

Bash 的报告时间

Zsh有一个巧妙的功能,可以自动打印比$REPORTTIME执行时间长的命令的计时统计信息。将其视为time根据需要自动执行管道。

从 Zsh 手册:

REPORTTIME
    If nonzero, commands whose combined user and system execution times
    (measured in seconds) are greater than this value have timing statistics
    printed for them.
Run Code Online (Sandbox Code Playgroud)

对于 Bash,是否存在类似的功能或一组启用类似行为的脚本?

bash zsh time

6
推荐指数
1
解决办法
828
查看次数

标签 统计

bash ×1

time ×1

zsh ×1