Is there an easy way to get at the history of REPL input?

I think this will serve nicely: REPL.find_hist_file(). Then all that is required is a little macro (or function) to spit out the contents of the history file… Perhaps like this, except a lot more succinct:

InteractiveUtils.less(REPL.find_hist_file())

Maybe this?

macro history() InteractiveUtils.less(REPL.find_hist_file()); end
3 Likes