It's a popular convention to put user-specific config files in the HOME dir prefixed by a dot (so they're hidden). DMD doesn't recognize a dot-prefixed dmd.conf file, and it would be nice if it did. I've included a patch to check for ".dmd.conf" in the HOME dir if "dmd.conf" doesn't exist. I don't think it's terribly important to do this secondary lookup in all locations because the likelihood of having such a dot-prefixed file elsewhere is very small.
Comment #1 by sean — 2011-01-11T12:10:10Z
Created attachment 869
check_dotfile.patch
Comment #2 by andrei — 2011-01-11T15:42:54Z
Yes please. This is an important "UI" issue.
Comment #3 by dlang-bot — 2019-03-12T22:58:04Z
@Basile-z created dlang/dmd pull request #9450 "fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir" fixing this issue:
- fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir
https://github.com/dlang/dmd/pull/9450
Comment #4 by dlang-bot — 2023-10-03T15:30:08Z
@Mai-Lapyst created dlang/dmd pull request #15648 "Fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir" fixing this issue:
- Fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir
https://github.com/dlang/dmd/pull/15648
Comment #5 by dlang-bot — 2023-10-06T13:17:12Z
dlang/dmd pull request #15648 "Fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir" was merged into master:
- 63a60563147c0c3f859b8563a4a4b2485226658f by Mai-Lapyst:
Fix issue 5445 - DMD does not look for ".dmd.conf" in HOME dir
https://github.com/dlang/dmd/pull/15648