DEV Community

Maartz
Maartz

Posted on

Give IEx a memory

I guess I'm not the only one here to use IEx during my Elixir session.
It's the REPL for Elixir, you can tinker with it, etc.

But, hey, if you read this you already know that.

So, IEx is good but maybe dumb. Everytime you exit IEx, you've to type everything back, it can be -- it is -- tedious.

So to give IEx a memory, just add this line to your shell config file.
For me it's in my .zshrc file.

export ERL_AFLAGS="-kernel shell_history enabled"
Enter fullscreen mode Exit fullscreen mode

And voilà ! Your IEx session will remember it's previous command and just key up to whatever line you've want to pickup. 😎

Top comments (0)