Skip to content

Instantly share code, notes, and snippets.

Created July 9, 2017 02:07
What would you like to do?
%% ~/.erlang runs too late to effect the regular `erl` shell
%% but will result in `rebar3 shell` using `.rebar3/` for history
application:set_env(kernel, shell_history, enabled).
application:set_env(kernel, shell_history_path, ".rebar3").
# put in ~/.zshrc or whatever shell so regular `erl` has
# history and will store it in ~/.cache/erlang-history/
export ERL_AFLAGS="-kernel shell_history enabled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment