1
0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-25 03:27:16 +08:00

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

Fixes #11201
This commit is contained in:
Marc Cornellà 2022-10-03 16:58:42 +02:00
parent 23f3ded92d
commit 1c879f67b4
No known key found for this signature in database
GPG Key ID: 0314585E776A9C1B

View File

@ -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