Skip to content

Commit

Permalink
Improve consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
cljoly committed May 25, 2021
1 parent 98d9607 commit 3539609
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Manage your dotfiles securely across multiple machines.
* [Scripts](#scripts)
* [Special files and directories](#special-files-and-directories)
* [`.chezmoi.<format>.tmpl`](#chezmoiformattmpl)
* [`.chezmoidata`](#chezmoidata)
* [`.chezmoidata.<format>`](#chezmoidataformat)
* [`.chezmoiignore`](#chezmoiignore)
* [`.chezmoiremove`](#chezmoiremove)
* [`.chezmoitemplates`](#chezmoitemplates)
Expand Down Expand Up @@ -489,21 +489,21 @@ data:
email: {{ $email | quote }}
```

### `.chezmoidata`
### `.chezmoidata.<format>`

If a file called `.chezmoidata` exists in the source state, it is interpreted
If a file called `.chezmoidata.<format>` exists in the source state, it is interpreted
as a datasource available in most [templates](TEMPLATING.md#template-data).

#### `.chezmoidata` examples
#### `.chezmoidata.<format>` examples

If `.chezmoidata` contains the following (and no variable is overwritten in later stages):
If `.chezmoidata.toml` contains the following (and no variable is overwritten in later stages):
```toml
editor = "nvim"
[directions]
up = "k"
down = "j"
right = "l"
left = "l"
left = "h"
```

Then the following template:
Expand All @@ -520,9 +520,9 @@ Will result in:
```
EDITOR=nvim
MOVE_UP=k
MOVE_DOWN=k
MOVE_RIGHT=k
MOVE_LEFT=k
MOVE_DOWN=j
MOVE_RIGHT=l
MOVE_LEFT=h
```

### `.chezmoiignore`
Expand Down

0 comments on commit 3539609

Please sign in to comment.