From 53f4bc5a494d737bc7794bdde03d986734c09233 Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Fri, 20 Sep 2019 00:57:17 +0800 Subject: [PATCH] Do not automatically setup GPG pinentry tty --- .zshrc | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.zshrc b/.zshrc index 67bd9db..03547f2 100644 --- a/.zshrc +++ b/.zshrc @@ -81,12 +81,14 @@ export PATH="$HOME/.yarn/bin:$PATH" # aliases alias vim=nvim -# gpg -export GPG_TTY="$(tty)" -# gpg ssh agent -test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -# gpg ssh fix pinentry -echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1 +function gpg_start { + # gpg + export GPG_TTY="$(tty)" + # gpg ssh agent + test -e "$(which gpgconf)" && export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" + # gpg ssh fix pinentry + echo "UPDATESTARTUPTTY" | gpg-connect-agent > /dev/null 2>&1 +} # minio client autoload -U +X bashcompinit && bashcompinit