Skip to content

Commit

Permalink
Add git config
Browse files Browse the repository at this point in the history
  • Loading branch information
AgenttiX committed Mar 2, 2024
1 parent 525780c commit bdf8a4b
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions git/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Based on
# https://gitlab.com/drjaska-projects/configs/git/-/blob/master/config

[include]
# Create this file using a separate script (or manually)
path = ~/.config/git/config_private

[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
[color]
ui = true
[core]
# excludesfile = ~/.config/git/ignore
# fsmonitor = true
pager = delta
# untrackedcache = true
[diff]
colorMoved = default
[interactive] # Configure git to use d-s-f for `git add --patch`
diffFilter = delta --color-only --features=interactive
# diffFilter = diff-so-fancy --patch
[merge]
conflictstyle = diff3
[pager]
diff = delta
# diff = diff-so-fancy | less -RFX #--tabs=8
[pull]
rebase = true


# -----
# Delta
# -----

[delta]
hyperlinks = true
max-line-distance = 1.0 # look for within-line changed with maximum effort
features = decorations
default-language = c
navigate = true
line-numbers = true
zero-style = 'dim syntax'
minus-style = 'syntax dim "#220000"'
plus-style = 'syntax dim "#002800"'
minus-empty-line-marker-style = minus-style
plus-empty-line-marker-style = plus-style
minus-emph-style = 'syntax auto'
plus-emph-style = 'syntax auto'
[delta "interactive"]
keep-plus-minus-markers = false
file-modified-label = " "
file-added-label = " "
file-removed-label = " "
file-copied-label = " "
file-renamed-label = " "
[delta "decorations"]
file-decoration-style = yellow
file-style = file yellow ul
hunk-header-decoration-style = cyan box dim ul
hunk-header-style = auto
file-modified-label = " "
file-added-label = " "
file-removed-label = " "
file-copied-label = " "
file-renamed-label = " "

0 comments on commit bdf8a4b

Please sign in to comment.