Make Erlang and Elixir (iex) shells save shell history across sessions
Elixir does not support history in the iex shell across sessions. Although you can use the up/down arrows to access previously entered code, this history is lost once you close the iex session. You can use erlang-history to allow persistent history in IEx and Erlang shells.
Read next Using Mix to Easily Create an Ecto Repo