diff options
author | Dan Davison <dandavison7@gmail.com> | 2024-03-22 07:34:34 -0400 |
---|---|---|
committer | Dan Davison <dandavison7@gmail.com> | 2024-03-22 07:34:34 -0400 |
commit | 3c6c50e4f5a515f17240a8205e2e6941809dcdff (patch) | |
tree | 069cae50e2cb62986cd4a74e3aa76858bf071de7 /manual/src/choosing-colors-styles.md | |
parent | ffaaba9890a5ef553f46949297080ecd9b60afdb (diff) |
Add documentation help regarding autodetection and light/dark settings
Diffstat (limited to 'manual/src/choosing-colors-styles.md')
-rw-r--r-- | manual/src/choosing-colors-styles.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manual/src/choosing-colors-styles.md b/manual/src/choosing-colors-styles.md index 37c95635..2b053d6b 100644 --- a/manual/src/choosing-colors-styles.md +++ b/manual/src/choosing-colors-styles.md @@ -1,5 +1,14 @@ # Choosing colors (styles) +Delta detects your terminal background color automatically and chooses appropriate default colors. +To override automatic detection use `dark` or `light`, e.g. + +```gitconfig +[delta] + dark = true +``` +This is necessary when running delta in some contexts such as `lazygit` or `zellij`. + All options that have a name like `--*-style` work in the same way. It is very similar to how colors/styles are specified in a gitconfig file: <https://git-scm.com/docs/git-config#Documentation/git-config.txt-color> |