Переделана работа с агентами (вынесена в отдельный файл)

This commit is contained in:
Andrei Astafev 2020-04-04 21:52:59 +03:00
parent 465fcd8557
commit 8ac8fa5200
4 changed files with 26 additions and 7 deletions

3
.zshrc
View File

@ -10,6 +10,9 @@ source $ZDOTDIR/options.zsh
source $ZDOTDIR/plugins.zsh
[ -e $ZDOTDIR/plugins.user.zsh ] && source $ZDOTDIR/plugins.user.zsh
source $ZDOTDIR/agents.zsh
[ -e $ZDOTDIR/agents.user.zsh ] && source $ZDOTDIR/agents.user.zsh
source $ZDOTDIR/aliases.zsh
[ -e $ZDOTDIR/aliases.user.zsh ] && source $ZDOTDIR/aliases.user.zsh

23
agents.zsh Normal file
View File

@ -0,0 +1,23 @@
# Copy this file to agents.user.zsh and modify to your needs
##
# 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
# antibody bundle ohmyzsh/ohmyzsh path:plugins/ssh-agent
##
# GPG agent
##
# antibody bundle ohmyzsh/ohmyzsh path:plugins/gpg-agent
##
# Keychain
##
# zstyle :omz:plugins:keychain identities id_rsa 01234567
# zstyle :omz:plugins:keychain options --quiet --inherit local-once --noask --nocolor --quick
# zstyle :omz:plugins:keychain agents gpg,ssh
# antibody bundle ohmyzsh/ohmyzsh path:plugins/keychain

View File

@ -1,3 +0,0 @@
zstyle :omz:plugins:keychain agents gpg,ssh
zstyle :omz:plugins:keychain identities id_rsa 01234567
zstyle :omz:plugins:keychain options --quiet --inherit local-once --noask --nocolor --quick

View File

@ -20,7 +20,3 @@ antibody bundle ohmyzsh/ohmyzsh path:plugins/systemd
antibody bundle ohmyzsh/ohmyzsh path:plugins/vim-interaction
antibody bundle ohmyzsh/ohmyzsh path:plugins/web-search
[ -e $ZDOTDIR/keychain-config.zsh ] && source $ZDOTDIR/keychain-config.zsh
antibody bundle ohmyzsh/ohmyzsh path:plugins/gpg-agent
antibody bundle ohmyzsh/ohmyzsh path:plugins/keychain