Skip to content

Instantly share code, notes, and snippets.

@tsloughter
Created July 9, 2017 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsloughter/4e07f6dda1815352933f7409580c5a9c to your computer and use it in GitHub Desktop.
Save tsloughter/4e07f6dda1815352933f7409580c5a9c to your computer and use it in GitHub Desktop.
%% ~/.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