summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-05-26 09:30:22 -0400
committerGitHub <noreply@github.com>2021-05-26 09:30:22 -0400
commit974204f897f06e8b87566cf25f6866096573c959 (patch)
tree561453006b0ce7691995524e8dd7786d30fde0dd
parentebe08f9a6d7156e6e1f4504f38f4652426fdb50e (diff)
Recommend setting delta as the pager for specific git commands (#610)
-rw-r--r--README.md18
1 files changed, 12 insertions, 6 deletions
diff --git a/README.md b/README.md
index bda9f682..9ff487d4 100644
--- a/README.md
+++ b/README.md
@@ -55,8 +55,11 @@ The most convenient way to configure delta is with a `[delta]` section in `~/.gi
<sub>
```gitconfig
-[core]
- pager = delta
+[pager]
+ diff = delta
+ log = delta
+ reflog = delta
+ show = delta
[interactive]
diffFilter = delta --color-only
@@ -278,13 +281,16 @@ Behind the scenes, delta uses `less` for paging. The version of `less` that come
## Configuration
-#### Git config files
+#### Git config file
-Set delta to be git's pager in your `.gitconfig`. Delta has many options to alter colors and other details of the output; `delta --help` shows them all. An example is
+Set delta to be the pager for git commands in your `.gitconfig`. Delta has many options to alter colors and other details of the output; `delta --help` shows them all. An example is
```gitconfig
-[core]
- pager = delta
+[pager]
+ diff = delta
+ log = delta
+ reflog = delta
+ show = delta
[delta]
plus-style = "syntax #012800"