When working with Elixir in an IEx console session, sometimes it is painful that it forgets everything between sessions!
There is a simple Github project that fixes this!
You can read more about it:
This project patches your local Erlang install to add history support. You will have to re-run this process after updating your Erlang version.
I cannot personally guarantee the code. Since it clones the repo each time it is run, you should check for any changes since the last time you audited it.