Skip to content

Commit

Permalink
fix(ssh-agent): silence ssh-add if quiet mode is enabled (ohmyzsh#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
mcornella committed Oct 3, 2022
1 parent 23f3ded commit 1c879f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/ssh-agent/ssh-agent.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c879f6

Please sign in to comment.