Change the output format of zsh's time
Posted
by YGA
on Super User
See other posts from Super User
or by YGA
Published on 2009-11-17T21:37:46Z
Indexed on
2010/05/17
13:21 UTC
Read the original article
Hit count: 314
Hi Folks,
I've just switched to zsh
. However, I really don't like how the time
builtin command also outputs the command that it's timing. I much prefer the bash
style output. Anyone know how to switch it over?
Zsh:
[casqa1:~/temp]$ time grep foo /dev/null
/usr/local/gnu/bin/grep --color -i foo /dev/null 0.00s user 0.00s system 53% cpu 0.004 total
Bash:
[casqa1:~/temp]$ bash
casqa1.nyc:~/temp> time grep foo /dev/null
real 0.0
user 0.0
sys 0.0
Thanks,
/YGA
© Super User or respective owner