diff --git a/git/config b/git/config index 535c4d8..84de740 100644 --- a/git/config +++ b/git/config @@ -3,7 +3,7 @@ [user] email = i@d0zingcat.dev name = Lee Tang - signingkey = 39E301C2 + signingkey = ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICWNAdF4p781cI/fIyHAEw+JgRxnoKX5BBk+xyr6r09W [url "https://"] insteadOf = git:// [core] @@ -11,6 +11,12 @@ excludesfile = /Users/d0zingcat/.config/git/.gitignore [commit] gpgsign = true +[gpg] + format = ssh + +[gpg "ssh"] + program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign" + [pager] difftool = true [diff] diff --git a/setup.sh b/setup.sh index e655283..36218dc 100755 --- a/setup.sh +++ b/setup.sh @@ -179,6 +179,10 @@ function recover() { $(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 case $option in "")