title: How to log IPython history to text file?
body: <p>After some searching and trawling through the IPython <a href="http://ipython.org/ipython-doc/rel-0.12/config/ipython.html" rel="noreferrer">documentation</a> and some <a href="https://github.com/ipython/ipython" rel="noreferrer">code</a>, I can't seem to figure out whether it's possible to store the command history (<em>not</em> the output log) to a <strong>text file</strong> rather than an SQLite database. <code>ipython --help-all</code> seems to indicate that this option doesn't exist.</p>
  
  <p>This would be very nice for version controlling frequently used commands like in <a href="https://github.com/l0b0/tilde/blob/master/.bash_history" rel="noreferrer">.bash_history</a>.</p>
  
  <p><strong>Edit</strong>: <a href="https://github.com/l0b0/tilde/blob/992f2295866c531e0f8602b0ad652d73293f6b2f/.config/ipython/profile_default/startup/history.py" rel="noreferrer">Working solution</a> based on @minrk's answer.</p>