You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manual/src/configuration.md
+15-1
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Git config file
4
4
5
-
The most convenient way to configure delta is with a `[delta]` section in `~/.gitconfig`. Here's an example:
5
+
Delta uses [git config](https://git-scm.com/docs/git-config#_configuration_file) (`~/.gitconfig`) for its configuration. Here's an example:
6
6
7
7
<sub>
8
8
@@ -21,6 +21,20 @@ The most convenient way to configure delta is with a `[delta]` section in `~/.gi
21
21
conflictstyle=zdiff3
22
22
```
23
23
24
+
You do not even need to use git -- delta accepts `git diff` and unified diff formats and hence works with e.g. mercurial and jujutsu -- but you do need to use the git config format.
25
+
26
+
If you want to store your delta config at a different location, use [[git docs](https://git-scm.com/docs/git-config#Documentation/git-config.txt-GITCONFIGGLOBAL)]
27
+
```bash
28
+
export GIT_CONFIG_GLOBAL=/path/to/my/delta/config
29
+
```
30
+
31
+
If you want to keep your delta and git config separate, use [[git docs](https://git-scm.com/docs/git-config#_includes)]
32
+
```gitconfig
33
+
[include]
34
+
path=~/src/devenv/dotfiles/delta/delta.gitconfig
35
+
```
36
+
37
+
24
38
</sub>
25
39
26
40
Use `delta --help` to see all the available options.
0 commit comments