Skip to content

$HOME/.erlang is not executed by rebar3 shell #2425

Description

@galdor

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions