summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index ab874e5..40f80d3 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -143,8 +143,9 @@ init_config() ->
Config
end,
- %% If $HOME/.rebar/config exists load and use as global config
- GlobalConfigFile = filename:join([os:getenv("HOME"), ".rebar", "config"]),
+ %% If $HOME/.rebar3/config exists load and use as global config
+ Home = rebar_utils:home_dir(),
+ GlobalConfigFile = filename:join([Home, ?CONFIG_DIR, "config"]),
State = case filelib:is_regular(GlobalConfigFile) of
true ->
?DEBUG("Load global config file ~p",