title: How to save and load history between invocations of Scala JLine
body: <p>I'm using <a href="http://search.maven.org/#artifactdetails%7Corg.scala-lang.virtualized%7Cjline%7C2.10.2-RC1%7Cjar" rel="nofollow">Scala JLine</a> in my CLI program.  It's working fine, but it forgets my history every time I restart my program.  I see a class called <code>FileHistory</code>, and I see the <code>ConsoleReader</code> class has a method called <code>setHistory()</code> which takes an instance of <code>FileHistory</code>.  I would expect calling that method would cause it to create or load and save a file containing my history.  But it doesn't.</p>
  
  <p>Unfortunately the documentation is nigh nonexistent.  How can I make it so the next time I run my JLine-enabled program it remembers the commands that I had typed in the previous run?</p>
  
  <h2>Update</h2>
  
  <p>Correct answer given below by mirandes.  Thanks to mirandes and som-snytt both for their helpful (yea solvent) responses.</p>