-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdot_gitconfig.tmpl
66 lines (65 loc) · 1.54 KB
/
dot_gitconfig.tmpl
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
[user]
{{ if eq .chezmoi.os "linux" -}}
email = {{ (rbwFields "dotfiles-chezmoi").gitconfig_email.value }}
{{ else -}}
{{ if eq .chezmoi.hostname "TanakaPC" -}}
email = {{ (bitwardenFields "item" "0f17c992-d0fe-4f36-bde8-95d9e2de3a6d").gitconfig_email.value }}
{{ else -}}
email = {{ (bitwardenFields "item" "ec557677-82d9-4a61-a4f6-aed300cfb34f").gitconfig_email.value }}
{{ end -}}
{{ end -}}
name = Yuto Tanaka
[core]
autocrlf = false
ignorecase = false
editor = nvim
quotepath = false
excludesfile = ~/.gitignore_global
pager = delta
{{- if eq .chezmoi.os "windows" }}
filemode = false
{{- end }}
[color]
ui = true
[credential]
{{ if eq .chezmoi.os "windows" -}}
helper = manager
{{ else -}}
helper = cache --timeout=475200
{{- end }}
[init]
defaultBranch = master
templatedir = ~/.git-templates/git-secrets
[tag]
sort = -version:refname
[commit]
verbose = true
{{ if eq .chezmoi.os "windows" -}}
[alias]
ls = "ls-files"
graph = "log --graph"
file-diff = "diff --name-only"
amecomi = "commit --amend"
namecomi = "commit --amend --no-edit"
cleanfetch = "fetch --all --prune --tags --prune-tags"
[winUpdater]
recentlySeenVersion = 2.25.0.windows.1
[credential "helperselector"]
selected = manager
[credential "https://codeberg.org"]
provider = generic
{{ end -}}
[pager]
diff = delta
log = delta
reflog = delta
show = delta
[delta]
plus-style = "syntax #012800"
minus-style = "syntax #340001"
syntax-theme = Monokai Extended
navigate = true
light = false
[interactive]
diffFilter = delta --color-only
# vim:ft=gitconfig