elixirelixir-iex

Is there a command to list iex history list by batch?


Is there a equivalent bash history command in iex?

After testing in iex, is there a way to list all history commands no need scroll up and down?

erlang history is added as follows:

export ERL_AFLAGS="-kernel shell_history enabled -kernel shell_history_path '\"$HOME/.iex_history\"'"

Solution

  • No, there is currently no function in iex to do this.

    However, you can use CTRL + R to search the history.


    By the way, erl has h() for this, although it seems to only list commands from the current session. It might be a nice addition to add to iex in the future.