Is there a way to run all commands in bash
as if they were invoked with time
in front? I want that I could type $ some_command
and this will actually invoke $ time some_command
.
Asked
Active
Viewed 184 times
7

Dror
- 171
1 Answers
0
Itself time command
do it :
time ls
time gimp
But if you want to invoke time
for each command
, you can customize a script for yourself,
you should run everything with it but it's not good way.

PersianGulf
- 10,850
-
My question is exactly how this script should look like... It would be really nice to be able to turn on and off this script. – Dror Sep 23 '13 at 15:53
-
zsh
, it's just a matter ofREPORTTIME=0
(report time of those processes that take more than 0 seconds). – Stéphane Chazelas Sep 23 '13 at 12:32bash
. I don't think I'll change my shell just because of this feature. – Dror Sep 23 '13 at 19:15