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

**URL:** <https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025>\
**Category:** General Usage\
**Tags:** repl\
**Created:** [November 26, 2018, 6:28pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025 "2018-11-26T18:28:48Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [November 26, 2018, 7:50pm UTC](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025/6 "2018-11-26T19:50:22Z")

</div>

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:

```julia
InteractiveUtils.less(REPL.find_hist_file())

```

Maybe this?

```julia
macro history() InteractiveUtils.less(REPL.find_hist_file()); end

```

---

_[View the full topic](https://discourse.julialang.org/t/is-there-an-easy-way-to-get-at-the-history-of-repl-input/18025)._
