diff options
author | Dan Davison <dandavison7@gmail.com> | 2019-06-27 15:50:54 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2019-06-27 15:50:54 -0400 |
commit | 8f16a88b20cf8f0267214302babdb1ce4439fb2b (patch) | |
tree | f16cbc41c996f9c79d938681c60b0b3c336f1dfd /README.md | |
parent | a96ad5779c8ed1701b53b01b0beb48639e5404c3 (diff) |
README: passing arguments in .gitconfig
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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` |