Config...::Unix(3pm)
β¨ NAME β¨
Config::Find::Unix β it's a Config::Find plugin for Unixen π
(yes the module is a whole 3pm perl thing, user contributed perl documentation vibes, iykyk)
π SYNOPSIS π
bestie listen. you do NOT use this module directly, okay? it's a plugin. it gets pulled in by its bestie:
# don't use Config::Find::Unix directly
use Config::Find;
that's it. that's the whole flex. π«Ά
π¦ ABSTRACT π¦
Config::Find plugin for Unixen</purl> β literally just that. short. sweet. iconic.
πΈ DESCRIPTION πΈ
okay so this module implements Config::Find for Unix π and the tea is all about the order it goes looking for your config files in. so slay, here's the lineup:
1 ~/.$name [user]
1b ~/.$name.conf [user]
2 /$path_to_script/../etc/$name.conf [global]
3 /$path_to_script/../conf/$name.conf [global]
4 /etc/$name.conf [global]
β¨ and yes there is a 1b, that's not a typo, she's just built different β¨
BUT β plot twist β if the environment variable $ENV{${name}_HOME} is defined, it does this instead:
1 ~/.$name [user]
1b ~/.$name.conf [user]
2 $ENV{${name}_HOME}/etc/$name.conf [global]
3 $ENV{${name}_HOME}/conf/$name.conf [global]
4 /etc/$name.conf [global]
instead. π (same energy, different address, no cap)
and now for the other vibe: when the "several configuration files in one directory" approach is used, the order is somewhat different:
1 ~/.$dir/$name.conf [user]
2 /$path_to_script/../etc/$dir/$name.conf [global]
3 /$path_to_script/../conf/$dir/$name.conf [global]
4 /etc/$dir/$name.conf [global]
(also affected by $ENV{${name}_HOME}) π§ β she's everywhere, she's the main character fr fr
side note bestie: notice the1bvanished in this one and$dirslid into the path. that's not me being messy, that's literally what the page says. π
π₯ SEE ALSO π₯
go read these too, they're the friend group:
- Config::Find
- Config::Find::Any
π AUTHOR π
Salvador FandiΓ±o GarcΓa, <sfandino@yahoo.com> π
π CONTRIBUTORS π
- Barbie,
<barbie@missbarbell.co.uk>(some bug fixes and documentation) π
π COPYRIGHT AND LICENSE π
read this part, bestie, it's the legal slay π
Copyright 2003-2015 by Salvador FandiΓ±o GarcΓa (sfandino@yahoo.com) Copyright 2015 by Barbie (barbie@missbarbell.co.uk)
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's a wrap on Config::Find::Unix π this page was served up by perl v5.36.0, dated 2022-12-07, and the manual name is Config...::Unix(3pm) bc the terminal clipped her name like a bad screenshot π periodt. bye bestie, go find some configs πβ¨
π¦ where this page comes from
- debian bookworm: libconfig-find-perl 0.31-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libconfig-find-perl 0.31-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libconfig-find-perl 0.31-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libconfig-find-perl 0.31-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libconfig-find-perl 0.31-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms