diff --git a/docs/config.md b/docs/config.md index 26de904b6..36dc00451 100644 --- a/docs/config.md +++ b/docs/config.md @@ -2,6 +2,8 @@ These are the config settings available to jj/Jujutsu. + + The config settings are loaded from the following locations. Less common ways to specify `jj` config settings are discussed in a later section. @@ -17,14 +19,20 @@ e.g. `user.name = "YOUR NAME"` is equivalent to: name = "YOUR NAME" ``` -For a more complicated example, +For future reference, here are a couple of more complicated examples, ```toml +# Dotted style +template-aliases."format_short_id(id)" = "id.shortest(12)" +colors."commit_id prefix".bold = true + +# is equivalent to: [template-aliases] "format_short_id(id)" = "id.shortest(12)" -``` -is equivalent to `template-aliases."format_short_id(id)" = "id.shortest(12)"`. +[colors] +"commit_id prefix" = { bold = true } +``` Jujutsu favors the dotted style in these instructions, if only because it's easier to write down in an unconfusing way. If you are confident with TOML