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, 2 insertions, 3 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl
index 03b7b98..e8a9983 100644
--- a/src/rebar3.erl
+++ b/src/rebar3.erl
@@ -144,9 +144,8 @@ init_config() ->
Config1 = rebar_config:merge_locks(Config, rebar_config:consult_file(?LOCK_FILE)),
- %% If $HOME/.rebar3/config exists load and use as global config
- Home = rebar_dir:home_dir(),
- GlobalConfigFile = filename:join([Home, ?CONFIG_DIR, "config"]),
+ %% If $HOME/.config/rebar3/config exists load and use as global config
+ GlobalConfigFile = rebar_dir:global_config(),
State = case filelib:is_regular(GlobalConfigFile) of
true ->
?DEBUG("Load global config file ~p",