Skip to content
Discussion options

You must be logged in to vote

Currently there is no way to override configuration variables in a generic way. Some specific configuration variables can be overridden with their specific flags (e.g. the interactive config variable and the --interactive flag), but most configuration variables cannot be overridden.

I agree that being able to override any config variable with a command line flag would be a valuable improvement to chezmoi.

Note that when you're using a custom diff.command you might also have to set diff.args and diff.pager, i.e. you might need to override multiple variables at the same time.

In the short term you could use two different config files, one with diff.command set to code and a second with diff…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@halloleo
Comment options

@twpayne
Comment options

Answer selected by halloleo
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