Skip to content

[FEAT] Adding custom dirs via environment variables #2080

@JohnnyCena123

Description

@JohnnyCena123

Description

what I propose is to be able to use environment variable, say FF_CONFIG_DIRS, as a colon-separated list of directories in which fastfetch would look for config files. ideally, they would precede in priority to the default ones.

Motivation

I found myself using multiple different fastfetch config files, and I would like to have the option to add custom search paths for them. currently fastfetch hardcodes to only search for config files provided via -c or --config in the platform data dirs. this is not ideal for adding custom search paths.

Additional context

currently I do not have any code to provide, I would first like to know if this is a thing that would be merged.
thank you in advance.
additionally, it could be useful to some extent if fastfetch searched recursively for config files provided via the command-line in each search path.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions