1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2026-04-25 15:53:30 +02:00

feat(ssh-agent): allow lazy-loading SSH identities (#6309)

Fixes #7477
This commit is contained in:
Marc Cornellà
2021-10-11 12:15:47 +02:00
parent 9bd0ac9b00
commit a0ac789f2a
2 changed files with 21 additions and 2 deletions
+4 -1
View File
@@ -96,7 +96,10 @@ else
_start_agent
fi
_add_identities
# Don't add identities if lazy-loading is enabled
if ! zstyle -b :omz:plugins:ssh-agent lazy; then
_add_identities
fi
unset agent_forwarding ssh_env_cache
unfunction _start_agent _add_identities