From a7b019090d6ee0001ff83eed2a8ee6d97f0a24f8 Mon Sep 17 00:00:00 2001 From: mikhailde Date: Tue, 15 Oct 2024 12:49:05 +0300 Subject: [PATCH] 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`. --- plugins/ssh-agent/ssh-agent.plugin.zsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index 01a333072..5f9cb5ee1 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -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