Skip to content
Discussion options

You must be logged in to vote

You can use config.yaml without setting an environment variable yourself by selecting it with the CLI option:

lazygit --use-config-file "$HOME/.config/lazygit/config.yaml"

That file must already exist. The current config loader treats an explicitly selected, missing file as an error.

For automatic discovery, the default filename is still config.yml; placing only config.yaml in the directory does not make it the default. That explains why an ordinary lazygit invocation creates config.yml instead. Also, --use-config-dir changes the directory, not the default filename.

So the distinction is: explicitly loading a .yaml file is supported; automatically choosing that filename is not currently …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mloskot
Comment options

Answer selected by mloskot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants