Repository navigation
Expand file tree
/
Copy pathdot_gitconfig.tmpl
More file actions
85 lines (85 loc) · 2.76 KB
/
Copy pathdot_gitconfig.tmpl
File metadata and controls
85 lines (85 loc) · 2.76 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
[user]
email = {{ .email | quote }}
[merge "mergiraf"]
name = mergiraf
driver = mergiraf merge --git %O %A %B -s %S -x %X -y %Y -p %P -l %L
[core]
editor = nvim
autocrlf = false
pager = delta
attributesfile = ~/.gitattributes
excludesFile = ~/.config/git/ignore
[credential]
helper = cache --timeout 21600 # 6 hours
helper = oauth
[interactive]
diffFilter = delta --color-only
[delta]
navigate = true
; side-by-side = true
line-numbers = true
hyperlinks = true
; If I can figure out how to create URL protocol association to nvim, use this
; hyperlinks-file-link-format = "nvim://{path}:{line}"
; Need to figure out how to have delta pass line number in hyperlinks - path comes through just fine though
; hyperlinks-file-link-format = "http://localhost:8000/open-in-editor?path={path}&line={line}"
; Even this isn't ideal because this just opens nvim in the termin running the server, so it's kind of a weird workflow
; hyperlinks-file-link-format = "http://localhost:8000/open-in-editor?path={path}"
map-styles = bold purple => syntax magenta, bold cyan => syntax blue
features = navigation
[diff]
colorMoved = default
; If I want to use difftastic as default external diff tool
; external = difft
[alias]
# `git log` with patches shown with difftastic.
dl = -c diff.external=difft log -p --ext-diff
# Show the most recent commit with difftastic.
ds = -c diff.external=difft show --ext-diff
# `git diff` with difftastic.
dft = -c diff.external=difft diff
[merge]
conflictstyle = zdiff3
{{ if eq .osid "darwin" -}}
[filter "lfs"]
process = /opt/homebrew/bin/git-lfs filter-process
required = true
clean = /opt/homebrew/bin/git-lfs clean -- %f
smudge = /opt/homebrew/bin/git-lfs smudge -- %f
{{ else -}}
[filter "lfs"]
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
{{ end -}}
[user]
name = Drew Daniels
[init]
defaultBranch = main
[checkout]
defaultRemote = origin
[tag]
sort = -version:refname
[submodule "plugins/tpm"]
url = https://github.com/tmux-plugins/tpm
active = true
[submodule "tmux/plugins/tpm"]
url = https://github.com/tmux-plugins/tpm
active = true
[submodule "tmux/plugins/tmux-powerline"]
url = https://github.com/erikw/tmux-powerline.git
active = true
[submodule "tmux/plugins/tmux-mem-cpu-load"]
url = https://github.com/thewtex/tmux-mem-cpu-load.git
active = true
[submodule "vim-tmux-navigator"]
url = https://github.com/christoomey/vim-tmux-navigator
active = true
[submodule "tmux/plugins/vim-tmux-navigator"]
url = https://github.com/christoomey/vim-tmux-navigator
active = true
{{ if eq .homeOrWork "work" -}}
[credential "https://gitlab.webpt.com"]
oauthClientId = 5880d8a00018f02dd8fd56f2161f4879ec5219675c4786660013fb0ae24c8cb8
{{- end -}}