feat(ssh-agent): add ssh-add-args setting (#7908)

* ssh-agent: add `:omz:plugins:ssh-agent ssh_add_args` option

* Clean up and document extra setting

* Document valid ssh-add arguments

Co-authored-by: Marc Cornellà <hello@mcornella.com>
This commit is contained in:
Will Boyce
2021-03-15 21:51:33 +00:00
committed by GitHub
parent 90bdb8a156
commit 0e232d4853
2 changed files with 26 additions and 2 deletions

View File

@ -48,7 +48,9 @@ function _add_identities() {
fi
done
[[ -n "$not_loaded" ]] && ssh-add ${^not_loaded}
local args
zstyle -a :omz:plugins:ssh-agent ssh-add-args args
[[ -n "$not_loaded" ]] && ssh-add "${args[@]}" ${^not_loaded}
}
# Get the filename to store/lookup the environment from