update to use 1password ssh agent/github ssh signing

Signed-off-by: Lee Tang <i@d0zingcat.dev>
This commit is contained in:
Lee Tang
2022-09-16 00:26:12 +08:00
parent f1f349f7ec
commit b2f38cfa10
2 changed files with 11 additions and 1 deletions

View File

@@ -3,7 +3,7 @@
[user] [user]
email = i@d0zingcat.dev email = i@d0zingcat.dev
name = Lee Tang name = Lee Tang
signingkey = 39E301C2 signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICWNAdF4p781cI/fIyHAEw+JgRxnoKX5BBk+xyr6r09W
[url "https://"] [url "https://"]
insteadOf = git:// insteadOf = git://
[core] [core]
@@ -11,6 +11,12 @@
excludesfile = /Users/d0zingcat/.config/git/.gitignore excludesfile = /Users/d0zingcat/.config/git/.gitignore
[commit] [commit]
gpgsign = true gpgsign = true
[gpg]
format = ssh
[gpg "ssh"]
program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign"
[pager] [pager]
difftool = true difftool = true
[diff] [diff]

View File

@@ -179,6 +179,10 @@ function recover() {
$(brew --prefix)/opt/fzf/install $(brew --prefix)/opt/fzf/install
} }
function post_recover() {
mkdir -p ~/.1password && ln -s ~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock ~/.1password/agent.sock
}
option=$1 option=$1
case $option in case $option in
"") "")