.zshrc: Use simpler GPG agent config

This commit is contained in:
2017-06-07 12:17:01 +03:00
parent 8b1f4d6c33
commit a2e8eccb00
2 changed files with 5 additions and 61 deletions

8
.zshrc
View File

@ -114,9 +114,11 @@ genpass() {
</dev/urandom tr -dc 'A-Za-z0-9!"#$%&'\''()*+,-./:;<=>?@[\]^_`{|}~' | head -c 15 ; echo
}
# Activate GPG agent and cache the password after first use
# See: https://github.com/axtl/gpg-agent.zsh
source ~/src/git/dotfiles/gpg-agent.plugin.zsh
# set GPG TTY
export GPG_TTY=$(tty)
#
# Refresh gpg-agent tty in case user switches into an X Session
gpg-connect-agent updatestartuptty /bye >/dev/null
export PATH
export MANPATH