From 55898254ec04fc5cf6f772944c9890bc2d9c339f Mon Sep 17 00:00:00 2001 From: reeink Date: Fri, 8 Mar 2024 22:55:07 +0800 Subject: [PATCH] update ssh gitconfig file for wsl --- .chezmoitemplates/dot_gitconfig_wsl.tmpl | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.chezmoitemplates/dot_gitconfig_wsl.tmpl b/.chezmoitemplates/dot_gitconfig_wsl.tmpl index e69de29..2604fd9 100644 --- a/.chezmoitemplates/dot_gitconfig_wsl.tmpl +++ b/.chezmoitemplates/dot_gitconfig_wsl.tmpl @@ -0,0 +1,12 @@ +[gpg] + format = ssh +[gpg "ssh"] + program = /mnt/c/Users/{{- output "powershell.exe" "$env:UserName" -}}/AppData/Local/1Password/app/8/op-ssh-sign-wsl +[commit] + gpgsign = true +[user] + signingkey = {{ .git.reeink.publicKey }} + name = {{ .git.reeink.name }} + email = {{ .git.reeink.email }} +[core] + sshCommand = ssh.exe