diff options
author | Marc Cornellà <hello@mcornella.com> | 2022-10-03 16:58:42 +0200 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2022-10-03 16:58:42 +0200 |
commit | 1c879f67b4380f0705ee1bc578d5aab53bf192a4 (patch) | |
tree | 8767cc9456eeb682482ab9079374baa6b3777fc5 /plugins/ssh-agent/ssh-agent.plugin.zsh | |
parent | 23f3ded92d07184b3611d08c62d7b474a76c956f (diff) | |
download | zsh-1c879f67b4380f0705ee1bc578d5aab53bf192a4.tar.gz zsh-1c879f67b4380f0705ee1bc578d5aab53bf192a4.tar.bz2 zsh-1c879f67b4380f0705ee1bc578d5aab53bf192a4.zip |
fix(ssh-agent): silence `ssh-add` if quiet mode is enabled (#11201)
Fixes #11201
Diffstat (limited to 'plugins/ssh-agent/ssh-agent.plugin.zsh')
-rw-r--r-- | plugins/ssh-agent/ssh-agent.plugin.zsh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh index 0d6a35b35..78ac46b13 100644 --- a/plugins/ssh-agent/ssh-agent.plugin.zsh +++ b/plugins/ssh-agent/ssh-agent.plugin.zsh @@ -72,6 +72,9 @@ function _add_identities() { local args zstyle -a :omz:plugins:ssh-agent ssh-add-args args + # if ssh-agent quiet mode, pass -q to ssh-add + zstyle -t :omz:plugins:ssh-agent quiet && args=(-q $args) + # use user specified helper to ask for password (ksshaskpass, etc) local helper zstyle -s :omz:plugins:ssh-agent helper helper |