Skip to content

location of configuration file #196

@mrjeffsmith

Description

@mrjeffsmith

Due to the existence of many Homebrew installed apps, each with the possibility of their own config file, the HOME dir can get very crowded, very quickly.

The solution that I've seen taken has been to check a set of standard locations for the app's config file, such as is indicated in the following example for WailBrew, from first/most-specific to last/default, stopping at the first one located.

$WAILBREW_CONFIG_FILE # set to "whatever.json" / (this one could even be left off)
$WAILBREW_CONFIG_DIR/config.json # I've seen these as the most common
$XDG_CONFIG_HOME/wailbrew/config.json # I've seen these as the most common
.config/wailbrew/config.json
.wailbrew/config.json
.wailbrew.json

I looked for reference to a configuration variable, but couldn't find one. Please point me to a link, if I've overlooked it.

Thanks. 🙏🏻

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions