What is the best way to print history of code executed in ammonite repl in previous sessions? I am aware of repl.history
but it contains code from current session and I know that ammonite keeps history of previous sessions because snippets from them are available using "up arrow" key.
Getting history out of ammonite
302 Views Asked by Łukasz Biały At
1
On Linux or Mac history is stored in your home directory in file
~/.ammonite/history
, so you could maybe just load it from file: