By default, user input history in IEx do not persist across different sessions.
erlang-history adds history support to both the Erlang shell and IEx:
git clone [email protected]:ferd/erlang-history.git
cd erlang-history
sudo make install
You can now access your previous inputs using the up and down arrow keys, even across different IEx sessions.