Browse Source

fix(ssh-agent): silence `ssh-add` if quiet mode is enabled (#11201)

Fixes #11201
Marc Cornellà 1 year ago
parent
commit
1c879f67b4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      plugins/ssh-agent/ssh-agent.plugin.zsh

+ 3 - 0
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