I can move up and down the history with the respective arrow keys, but that is cumbersome with a large history, and CTRL-R
doesn't seem to work.
Looked at Erlang's shell
module and Elixir's IEx
module documentation, but they don't mention anything about this. The latter at least tells how to enable it:
It is possible to get shell history by passing some options that enable it in the VM. This can be done on a per-need basis when starting IEx:
iex --erl "-kernel shell_history enabled"
If you would rather enable it on your system as a whole, you can use the
ERL_AFLAGS
environment variable and make sure that it is set accordingly on your terminal/shell configuration.On Unix-like / Bash:
export ERL_AFLAGS="-kernel shell_history enabled"
On Windows:
set ERL_AFLAGS "-kernel shell_history enabled"
On Windows 10 / PowerShell:
$env:ERL_AFLAGS = "-kernel shell_history enabled"