The Erlang documentation states that:
When Erlang/OTP is started, the system searches for a file named .erlang in the user's home directory. If an .erlang file is found, it is assumed to contain valid Erlang expressions. These expressions are evaluated as if they were input to the shell.
When a ~/.erlang file exists, it is indeed executed when running erl. However this is not the case when Erlang is started with rebar3 shell.
This is a problem because ~/.erlang is the only way to alter the Erlang environment without affecting the Rebar3 configuration of the project or the application itself (and thus to force your personal preferences to everyone working on the project). For example, it can be used to configure the Erlang logger with different settings (the default configuration is really impractical for development).
Is there a reason for this ? If this is done on purpose, would there be a way to add a setting to control this behaviour ?
The Erlang documentation states that:
When a
~/.erlangfile exists, it is indeed executed when runningerl. However this is not the case when Erlang is started withrebar3 shell.This is a problem because
~/.erlangis the only way to alter the Erlang environment without affecting the Rebar3 configuration of the project or the application itself (and thus to force your personal preferences to everyone working on the project). For example, it can be used to configure the Erlang logger with different settings (the default configuration is really impractical for development).Is there a reason for this ? If this is done on purpose, would there be a way to add a setting to control this behaviour ?