How to save/log the output of the iex shell to get persistent command history?
问题 I just started working with Elixir and have been using the iex shell quite a bit. Is it possible for me to save / log a "session" to a file? Thank you. 回答1: In Erlang/OTP-20 and higher Since Erlang/OTP-20rc2, Shell history is supported out of the box (although initially disabled by default) through a port of this library to the Erlang/OTP code base. Enable the shell in these versions by setting the shell_history kernel environment variable to enabled with export ERL_AFLAGS="-kernel shell