Automatically timing every executed command and show in Bash prompt?

Posted by mfn on Stack Overflow See other posts from Stack Overflow or by mfn
Published on 2009-07-24T08:21:52Z Indexed on 2010/04/28 21:27 UTC
Read the original article Hit count: 242

Filed under:
|
|

I often happen to forget to explicitly prefix executions with the "time" command, ideally I would see in the next shell prompt how much real time the last command took (on every command).

I already scoured through the bash documentation, but couldn't find anything related.

© Stack Overflow or respective owner

Related posts about bash

Related posts about prompt