22 ms·
My personal favorite zsh specific feature is the REPORTTIME environment variable. When set to a nonzero number it'll automatically print a summary after a long
by kemist 13y ago
My personal favorite zsh specific feature is the REPORTTIME environment variable. When set to a nonzero number it'll automatically print a summary after a long running command.
My own http://imgur.com/6LCS1cj http://imgur.com/6LCS1cj
- kyrias 13y agoHmm doesn't work for me, is it an option you need to turn on?
- randuser 13y agoIt's a normal variable, not one set by `setopt`. The following should make commands that take longer than 1 second be reported: export REPORTTIME=1
- kemist 13y agoAs randuser points out it's an environment variable. There's another one called TIMEFMT which lets you format the output. Some examples: https://github.com/search?q=TIMEFMT+extension%3Azshrc&type=Code&ref=advsearch&l= https://github.com/search?q=TIMEFMT+extension%3Azshrc&ty...
- ericcoleman 13y agoThis is super cool... been using zsh for a while and wasn't aware!