From 9dc78aa73d4a0c8ca20155fa09a5959f651d8aec Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Wed, 21 Dec 2022 10:25:12 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9F=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=D0=BB=D0=B8=D1=87=D0=B8=D1=8F=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B3=D1=80=D0=B0=D0=BC=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 55-agents.zsh | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/55-agents.zsh b/55-agents.zsh index e4c2a77..6d18ed6 100644 --- a/55-agents.zsh +++ b/55-agents.zsh @@ -6,10 +6,12 @@ ## # SSH agent ## -# zstyle :omz:plugins:ssh-agent agent-forwarding on -# zstyle :omz:plugins:ssh-agent identities id_rsa -# zstyle :omz:plugins:ssh-agent lifetime 10h -# zinit snippet OMZP::ssh-agent +# if command -v ssh-agent >/dev/null 2>&1; then +# zstyle :omz:plugins:ssh-agent agent-forwarding on +# zstyle :omz:plugins:ssh-agent identities id_rsa +# zstyle :omz:plugins:ssh-agent lifetime 10h +# zinit snippet OMZP::ssh-agent +# fi ## # GPG agent @@ -24,7 +26,9 @@ ## # Keychain ## -# zstyle :omz:plugins:keychain identities id_rsa 01234567 -# zstyle :omz:plugins:keychain options --quiet --inherit any-once --noask --nocolor --gpg2 --absolute --dir ~/.cache/keychain -# zstyle :omz:plugins:keychain agents gpg,ssh -# zinit snippet OMZP::keychain +# if command -v keychain >/dev/null 2>&1; then +# zstyle :omz:plugins:keychain identities id_rsa 01234567 +# zstyle :omz:plugins:keychain options --quiet --inherit any-once --noask --nocolor --gpg2 --absolute --dir ~/.cache/keychain +# zstyle :omz:plugins:keychain agents gpg,ssh +# zinit snippet OMZP::keychain +# fi