mirror of
https://github.com/robbyrussell/oh-my-zsh.git
synced 2025-12-06 07:20:40 +01:00
fix(ssh-agent): silence ssh-add if quiet mode is enabled (#11201)
Fixes #11201
This commit is contained in:
@@ -72,6 +72,9 @@ function _add_identities() {
|
|||||||
local args
|
local args
|
||||||
zstyle -a :omz:plugins:ssh-agent ssh-add-args 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)
|
# use user specified helper to ask for password (ksshaskpass, etc)
|
||||||
local helper
|
local helper
|
||||||
zstyle -s :omz:plugins:ssh-agent helper helper
|
zstyle -s :omz:plugins:ssh-agent helper helper
|
||||||
|
|||||||
Reference in New Issue
Block a user