Has any tool for search/view history of IEx

Recently, I’ve been working with Nx/Axon. Training a model can take quite a long time, so I often return to the same IEx session later.

However, I couldn’t find a way to search the command history or list all previous commands in IEx. If anyone knows a tool or command that supports listing or searching the history, please let me know.

Need a tool/search function like history and ctrl + r in terminal

Yup, I know of such a search tool for IEx: ctrl + r :wink:

What you are probably missing is having your erlang shell history saved:

export ERL_AFLAGS="-kernel shell_history enabled"
4 Likes

Thank you so much! This helps me quickly recall commands :+1:

1 Like

Hi, you can also use this:

iex --erl “-kernel shell_history enabled -kernel shell_history_file ‘.iex_history’” -S mix

With that, you separate histories of your projects that are in different folders.

2 Likes

Oh, nice! I can look back and summarize my commands. :ok_hand: