1
0
Fork 0
mirror of https://github.com/tylernguyen/dotfiles.git synced 2025-02-05 01:03:15 -06:00
dotfiles/dot_gitconfig.tmpl

62 lines
1.2 KiB
Cheetah
Raw Permalink Normal View History

2024-06-05 18:03:49 -05:00
[core]
editor = code --wait
ignorecase = false
{{ if eq .chezmoi.os "windows" }}
sshCommand = C:/Windows/System32/OpenSSH/ssh.exe
{{ end }}
[diff]
2024-11-14 22:58:39 -06:00
tool = default-difftool
2024-06-05 18:03:49 -05:00
2024-11-14 22:58:39 -06:00
[difftool "default-difftool"]
cmd = code --wait --diff $LOCAL $REMOTE
2024-06-05 18:03:49 -05:00
[merge]
2024-11-14 22:58:39 -06:00
tool = code
2024-06-05 18:03:49 -05:00
2024-11-14 22:58:39 -06:00
[mergetool "code"]
cmd = code --wait --merge $REMOTE $LOCAL $BASE $MERGED
2024-06-05 18:03:49 -05:00
[user]
name = Tyler Nguyen
email = human@tylernguyen.email
[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