docs(ssh-agent): clarify default key loading behavior

Clarify the default key loading behavior in the ssh-agent plugin when no keys are explicitly specified in zstyle. The plugin now loads all files in `~/.ssh` recognized as private keys by `file -b`.
This commit is contained in:
mikhailde 2024-10-15 12:49:05 +03:00
commit a7b019090d

View file

@ -39,8 +39,7 @@ function _add_identities() {
return
fi
# If no keys specified in zstyle, add default keys.
# Mimics calling ssh-add with no arguments.
# If no keys specified in zstyle, loads all private keys in ~/.ssh
if [[ ${#identities[@]} -eq 0 ]]; then
# Iterate over files in .ssh folder.
for file in "$HOME/.ssh"/*; do