2022-12-18 15:58:00 +00:00
|
|
|
# shellcheck shell=bash
|
|
|
|
# vim: ft=sh
|
|
|
|
|
2021-12-05 21:42:07 +00:00
|
|
|
# Copy this file to 55-agents.user.zsh and modify to your needs
|
2020-04-04 18:52:59 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# SSH agent
|
|
|
|
##
|
2022-12-21 07:25:12 +00:00
|
|
|
# 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
|
2020-04-04 18:52:59 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# GPG agent
|
|
|
|
##
|
2022-12-20 12:12:24 +00:00
|
|
|
# if command -v gpg-agent >/dev/null 2>&1; then
|
|
|
|
# zinit snippet OMZP::gpg-agent
|
|
|
|
# if command -v gpg-conf >/dev/null 2>&1; then
|
|
|
|
# gpgconf --create-socketdir
|
|
|
|
# fi
|
|
|
|
# fi
|
2020-04-04 18:52:59 +00:00
|
|
|
|
|
|
|
##
|
|
|
|
# Keychain
|
|
|
|
##
|
2022-12-21 07:25:12 +00:00
|
|
|
# if command -v keychain >/dev/null 2>&1; then
|
2022-12-21 07:50:42 +00:00
|
|
|
# zstyle :omz:plugins:keychain identities id_rsa 01234567
|
|
|
|
# zstyle :omz:plugins:keychain options --quiet --inherit any-once --noask --nocolor --gpg2 --absolute --dir ~/.cache/keychain
|
2022-12-21 07:25:12 +00:00
|
|
|
# zstyle :omz:plugins:keychain agents gpg,ssh
|
2022-12-21 07:50:42 +00:00
|
|
|
# zinit snippet OMZP::keychain
|
2022-12-21 07:25:12 +00:00
|
|
|
# fi
|
2022-12-21 07:50:42 +00:00
|
|
|
|
|
|
|
# Вариант только для ssh-agent
|
|
|
|
# if command -v keychain >/dev/null 2>&1; then
|
|
|
|
# zstyle :omz:plugins:keychain identities id_rsa
|
|
|
|
# zstyle :omz:plugins:keychain options --quiet --inherit any-once --noask --nocolor
|
|
|
|
# zstyle :omz:plugins:keychain agents ssh
|
|
|
|
# zinit snippet OMZP::keychain
|
|
|
|
# fi
|
|
|
|
|