From 2b381b69a349eb7cf2b39b5e72595dd5e8ffb8c3 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Fri, 20 Oct 2017 08:28:29 +0800 Subject: zsh: add 80-gpg.zsh to setup gpg, also fix TTY problem for ssh-support --- _profile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to '_profile') diff --git a/_profile b/_profile index cb983e2..b219d75 100644 --- a/_profile +++ b/_profile @@ -88,15 +88,11 @@ export VISUAL="${EDITOR}" export PAGER="less" export LESS="--ignore-case --raw-control-chars" -## Start `gpg-agent` if not running +## Start `gpg-agent' if it is not running if ! _running gpg-agent; then gpgconf --launch gpg-agent fi -## Set SSH to use `gpg-agent` as the SSH agent is enabled -unset SSH_AGENT_PID -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="/run/user/${UID}/gnupg/S.gpg-agent.ssh" -fi - PROFILE_SOURCED=yes + +# EOF -- cgit v1.2.2