Thank you. After reading your answer I knew what to search for and came across this package, which I found useful: https://github.com/PetrKryslUCSD/REPLHistory.jl
and for reference I found that in this post: Is there an easy way to get at the history of REPL input?