-
Sometimes I want to view the diff in VS Code, sometimes in emacs. Can I supply ` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 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 In the short term you could use two different config files, one with |
Beta Was this translation helpful? Give feedback.
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 setdiff.args
anddiff.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 tocode
and a second withdiff…