Using erlang-history for iex

I found this project: and am wondering if anyone is using this with iex, and/or is it possible?

edit: Nevermind, after a little poking around and actually testing it out I see that it works with iex out of the box!

1 Like

Yes, this works out of the box. The only slightly annoying part is that you need to compile it and install on every version of Erlang you use. If you upgrade your Erlang you most likely need to reinstall.

You could actually make a history shell (and better interface) by making your own shell module for IEX to use. :slight_smile:

No one has yet, but it is possible.

EDIT: Maybe even a special .boot file could do it…

For anyone trying to get this to work, it may NOT work on OTP/20, but also, it’s not NEEDED on OPT/20 anymore, it’s built in, but disabled by default!

short version is export ERL_AFLAGS="-kernel shell_history enabled"