DMD.CONF(5)
π DMD.CONF(5) β the dmd configuration file, bestie edition β¨
okay so real talk, this is the dmd.conf manpage from the Digital Mars D crew, and it's genuinely not that deep β but it is lowkey important, so let's get into it π«Ά
πΈ NAME πΈ
dmd.conf β the configuration file for dmd(1) π
β¨ SYNOPSIS β¨
/etc/dmd.conf
that's it. that's the whole synopsis. iconic behavior honestly π
π¦ DESCRIPTION π¦
so dmd goes looking for its initialization file, dmd.conf, in these directories, in this exact order:
- the current working directory π
$HOMEπ- the directory containing the
dmdexecutable π§ /etcβοΈ
if it finds one, the environment variable settings in that file override any settings that already exist. no cap.
and likeβ¦ that's actually the point? it's handy for making dmd independent of other programs that are out here with a conflicting use of environment variables π like girl, stop fighting over DFLAGS.
π SYNTAX π
environment variables go after the [Environment] section heading, written as name=value or name?=value pairs.
comments are lines that start with ; β yes, semicolon. not #. I know. I know. π
variable names are always converted to uppercase, so if you write name=value, what actually gets written is the variable with the name NAME. periodt.
and if you use the name?=value syntax, the variable with NAME will only be written if it was defined before β and in that case, the original value is preserved π
so like,=says "move over, I'm the main character now" and?=says "only if nobody's already claimed this seat, no worries bestie" π
π₯ EXAMPLE π₯
here's the whole thing verbatim, keep it exactly like this:
; dmd.conf file for dmd
; Names enclosed by %% are searched for in the existing environment
; and inserted. The special name %@P% is replaced with the path
; to this file.
[Environment]
DFLAGS="-I%@P%/../src/phobos"
ate, no crumbs π
π FILES π
/etc/dmd.conf
π SEE ALSO π
dmd(1)rdmd(1)
go read those too, they're the whole friend group fr fr π
okay that's the page!! π huge thanks to Digital Mars for this one, dated 2006-03-12 β and yeah, it's the DMD.CONF(5) page, section 5, obvi. now go set your environment variables, you absolute icon πβ¨
π¦ where this page comes from
- alpine 3.24: dmd-doc 2.112.1-r2 Β· BSL-1.0
- opensuse-leap 16.0: dmd 2.109.1-bp160.1.5 Β· BSL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms