-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
146 lines (130 loc) · 3.79 KB
/
dot_gitconfig.tmpl
File metadata and controls
146 lines (130 loc) · 3.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[core]
editor = nvim
autocrlf = false
pager = delta
{{- if eq .chezmoi.os "darwin" }}
excludesfile = /Users/cfb/.gitignore
{{- end }}
[user]
name = Cody Bender
email = {{ .email | quote }}
{{- if eq .chezmoi.os "darwin" }}
signingkey = /Users/cfb/.ssh/id_ed25519.pub
{{- else }}
signingkey = ~/.ssh/id_ed25519.pub
{{- end }}
[gpg]
format = ssh
[commit]
gpgsign = true
[tag]
gpgsign = true
[init]
defaultBranch = main
[push]
default = current
autoSetupRemote = true
[pull]
rebase = true
[diff]
tool = diffnav
colorMoved = default
[merge]
tool = meld
conflictstyle = diff3
[rerere]
enabled = true
[maintenance]
auto = false
strategy = incremental
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[alias]
sw = switch
nb = switch -c
co = checkout
dt = difftool
st = status
cm = commit -m
pom = pull origin main
ac = "!f() { git add -A && git commit -m \"$@\";}; f"
acp = "!f() { git add -A && git commit -m \"$@\" && git push; }; f"
pf = push --force-with-lease
staash = stash --all
sps = "!f() { git stash && git pom && git stash pop; }; f"
sws = "!f() { git stash && git sw \"$@\" && git stash pop; }; f"
rc = "!f() { git add -A && git rebase --continue; }; f"
fuck = "!f() { git add -A && git commit --amend --no-edit; }; f"
squash-base = "!f() { (git merge-base HEAD origin/main | xargs git reset --soft) && git add . && git commit; }; f"
clean-branches = "!f() { git branch --merged | egrep -v \"(^master|main)\" | xargs git branch -D; }; f"
su = !git branch --set-upstream-to=origin/$(git symbolic-ref --short HEAD)
recent = for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short) | %(committerdate) | %(authorname)'
recent-branch = for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short)'
[interactive]
diffFilter = delta --color-only
[add.interactive]
useBuiltin = false
# Delta configuration
[delta]
side-by-side = true
navigate = true
dark = true
commit-decoration-style = bold box ul
hunk-header-decoration-style = box ul
hunk-header-file-style = bold
hunk-header-style = file line-number syntax
{{- /* To switch themes, change the condition below */ -}}
{{- if true }}
# Kanagawa Wave theme
syntax-theme = Kanagawa
file-decoration-style = "#DCD7BA"
file-style = "#DCD7BA"
hunk-header-line-number-style = bold "#54546D"
line-numbers-left-style = "#54546D"
line-numbers-minus-style = bold "#E46876"
line-numbers-plus-style = bold "#98BB6C"
line-numbers-right-style = "#54546D"
line-numbers-zero-style = "#54546D"
blame-palette = "#1f1f28 #23232e #282834 #2e2e3a #363646"
# 25% red 75% base
minus-emph-style = bold syntax "#43242B"
# 10% red 90% base
minus-style = syntax "#2a2430"
# 25% green 75% base
plus-emph-style = bold syntax "#2B3328"
# 10% green 90% base
plus-style = syntax "#222826"
map-styles = \
bold purple => syntax "#352f3e", \
bold blue => syntax "#2a3545", \
bold cyan => syntax "#2a3540", \
bold yellow => syntax "#3a3730"
{{- else }}
# Catppuccin Frappe theme
syntax-theme = Catppuccin Mocha
file-decoration-style = "#c6d0f5"
file-style = "#c6d0f5"
hunk-header-line-number-style = bold "#a5adce"
line-numbers-left-style = "#737994"
line-numbers-minus-style = bold "#e78284"
line-numbers-plus-style = bold "#a6d189"
line-numbers-right-style = "#737994"
line-numbers-zero-style = "#737994"
blame-palette = "#303446 #292c3c #232634 #414559 #51576d"
# 25% red 75% base
minus-emph-style = bold syntax "#5e4855"
# 10% red 90% base
minus-style = syntax "#433c4c"
# 25% green 75% base
plus-emph-style = bold syntax "#4e5b56"
# 10% green 90% base
plus-style = syntax "#3c444d"
map-styles = \
bold purple => syntax "#574f6e", \
bold blue => syntax "#475270", \
bold cyan => syntax "#4a5b6b", \
bold yellow => syntax "#5d5958"
{{- end }}