+25

BASH integration

Denford Berriman vor 11 Jahren aktualisiert von Das Skriptkiddie vor 10 Jahren 2
It would be great to see how much time between coding streaks is spent in a terminal.


I tried to implement a script for this but it became pretty hard with all the various windows I had open and different programs doing different things to the buffer. I.e. what happens when you open text editor in bash? how do you tell if user is inactive or process is running like tailing logs? Mite have to leave it in to hard basket until I come up with better idea.

Maybe periodically check ~/.bash_history and add timestamps to any command. Not the best approach but it works (in my mind at least, could be wrong)