summaryrefslogtreecommitdiff
path: root/plugins/ssh-agent/ssh-agent.plugin.zsh
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2021-03-16 14:46:40 -0600
committerTuowen Zhao <ztuowen@gmail.com>2021-03-16 14:46:40 -0600
commit0a67be1024b1e54b6af59f01b01ceace9fdf7bb2 (patch)
tree2e989a1c283cc942312222d1afecd28640c5315b /plugins/ssh-agent/ssh-agent.plugin.zsh
parent0f2bface6494ae546ea83cbf45b65a18dbc0c4fb (diff)
parent95a06f3927a286db257dc99791b02caba757fe33 (diff)
downloadzsh-0a67be1024b1e54b6af59f01b01ceace9fdf7bb2.tar.gz
zsh-0a67be1024b1e54b6af59f01b01ceace9fdf7bb2.tar.bz2
zsh-0a67be1024b1e54b6af59f01b01ceace9fdf7bb2.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins/ssh-agent/ssh-agent.plugin.zsh')
-rw-r--r--plugins/ssh-agent/ssh-agent.plugin.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
index 6ab041c21..430647135 100644
--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
@@ -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