mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
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:
parent
f37ee4e881
commit
a7b019090d
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue