-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_gitconfig.tmpl
61 lines (47 loc) · 1.16 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
[core]
editor = code --wait
ignorecase = false
{{ if eq .chezmoi.os "windows" }}
sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
{{ end }}
[diff]
tool = default-difftool
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
[merge]
tool = code
[mergetool "code"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
[user]
name = Tyler Nguyen
email = [email protected]
[includeIf "gitdir:src/tylernguyen@GitHub/"]
path = ./.tylernguyen@GitHub/.gitconfig
[includeIf "gitdir:src/tylernguyen.codes/"]
path = ./.tylernguyen.codes/.gitconfig
[gpg]
format = ssh
{{ if eq .chezmoi.os "windows" }}
program = c:\\Program Files (x86)\\GnuPG\\bin\\gpg.exe
{{ end }}
[gpg "ssh"]
{{ if eq .chezmoi.os "windows" }}
program = "C:/Program Files/1Password/app/8/op-ssh-sign.exe"
{{ end }}
{{ if eq .chezmoi.os "darwin" }}
program = /Applications/1Password.app/Contents/MacOS/op-ssh-sign
{{ end }}
{{ if eq .chezmoi.os "linux" }}
program = "/opt/1Password/op-ssh-sign"
{{ end }}
[commit]
gpgSign = true
[tag]
gpgSign = true
forceSignAnnotated = true
[init]
defaultBranch = main
[alias]
last = log -1 HEAD --stat
[pull]
rebase = true