title: ipython: print complete history (not just current session)
body: <p>in <code>ipython</code>, I can use <code>%hist</code> or <code>%history</code> to print recent history, but this only prints history from current session.</p>
  
  <p>I would like to print all history, similar as bash <code>history</code>command does. </p>
  
  <p>What I am trying to do is to get complete history, so that I can then search with regex, see what commands followed after specified commands, and so on</p>
  
  <p>Speaking of history, can it also print timecodes?</p>
  
  <p><strong>SIDE NOTE</strong>:
  In bash, I have written a simple script which prints history and I can grep it for keywords. I see times when certain commands were executed. I can specify <code>-A n</code> or <code>-B n</code>, where <code>n</code> is a number of lines <code>AFTER</code> or <code>BEFORE</code> a given command.
  This is very handy, because I can easily find what I did when, and what followed, ...</p>
  
  <p>I am looking for something similar for <code>ipython</code></p>