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
![]()
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









