Bozo's Jung And The Restless

2009/05/10

On Your Bash History

Filed under: Foo — bozo @ 7:34 pm

There has been about eleventy billion times I’ve done something at work on a *nix system and then a few days later wondered what/when/how/why I did it. This little tip I found goes some way to helping this eternal headache by appending a date to the entries in your .bash_history

The basic gist is you just vim your .bashrc and append the line 

 export HISTTIMEFORMAT=”%h/%d – %H:%M:%S “

Then exit and the next time you login all your dreams will have come true*.

The full article can be found Here

* This assumes all your dreams comprise of dates prepended to the display of each command and you haven’t killed yourself for having such a sad arse dream.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

You must be logged in to post a comment.

Powered by WordPress