acrolink
Is it possible to enable a command history feature for the iex console?
I mean to be able to go back to previously used commands using the up arrow key.
Marked As Solved
acrolink
I am running latest OTP and have just enabled it by:
export ERL_AFLAGS="-kernel shell_history enabled"
Also Liked
NobbZ
This is enabled by default for all versions of Erlang, but only ever affects the current session.
From Erlang OTP 20 on, you can enable a history that spans sessions:
Be aware though that on windows you might need to use werl/iex --werl.
m4hi2
I had the same issue. I tried everything from setting the ENV to restarting the machine but in the end, it was a mismatched OTP version. I used 1.14.3-otp-25 as my Elixir version but the Erlang version was set to 26.1.2. After changing the Elixir version to 1.15.7-otp-26 it worked as expected. Leaving this reply as a future reference for myself and others who are in a similar situation and trying to fix the same problem.
teddylopez
This was my issue as well.
Thanks for posting this
![]()
silverdr
So was mine…







