mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-05 23:18:11 +09:00
feat(ssh): use available SSH agent socket
This commit is contained in:
@@ -24,6 +24,9 @@ lib.mkMerge [
|
||||
};
|
||||
|
||||
extraConfig = ''
|
||||
Match exec "test -n \"$SSH_AUTH_SOCK\" && test -S \"$SSH_AUTH_SOCK\""
|
||||
IdentityAgent $SSH_AUTH_SOCK
|
||||
|
||||
Match exec "test -S %d/.1password/agent.sock"
|
||||
IdentityAgent %d/.1password/agent.sock
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user