summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2019-06-27 15:50:54 -0400
committerDan Davison <dandavison7@gmail.com>2019-06-27 15:50:54 -0400
commit8f16a88b20cf8f0267214302babdb1ce4439fb2b (patch)
treef16cbc41c996f9c79d938681c60b0b3c336f1dfd /README.md
parenta96ad5779c8ed1701b53b01b0beb48639e5404c3 (diff)
README: passing arguments in .gitconfig
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 8 insertions, 1 deletions
diff --git a/README.md b/README.md
index 40e6a4b3..906ab0c4 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ OPTIONS:
`/path/to/delta/target/debug/delta | less -R` in the next step.
4. **Configure git to use delta:**<br>
- (Note that delta defaults to a light theme, so if you're using a dark terminal background, you'll want to use `--dark` or `--theme <theme-name>`.)
+ (Note that delta defaults to a light theme, so if you're using a dark terminal background, you'll want to use `--dark` or `--theme=<theme-name>`.)
Edit your `~/.gitconfig`:
```
@@ -70,6 +70,13 @@ OPTIONS:
git config --global core.pager 'delta | less -R'
```
+ You can pass arguments to delta in your `.gitconfig`. An example is
+ ```
+ [core]
+ pager = delta --width=100 --plus-color="#012800" --minus-color="#340001" --theme="base16-ocean.dark" | less -R
+ ```
+ Please include the `=` characters; I'm not sure why yet, but they're necessary when writing a delta command line in `.gitconfig`!
+
All git commands that display diff output should now display syntax-highlighted output. For example:
- `git diff`
- `git show`