aboutsummaryrefslogtreecommitdiffstats
path: root/_profile
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-10-20 08:28:29 +0800
committerAaron LI <aly@aaronly.me>2017-10-20 08:28:29 +0800
commit2b381b69a349eb7cf2b39b5e72595dd5e8ffb8c3 (patch)
tree5c054c35269e04b70e3e763db12f61da53abde1b /_profile
parentdfce3c52ba94ef755a19e08982d1d5af54ddf37d (diff)
downloaddotfiles-2b381b69a349eb7cf2b39b5e72595dd5e8ffb8c3.tar.bz2
zsh: add 80-gpg.zsh to setup gpg, also fix TTY problem for ssh-support
Diffstat (limited to '_profile')
-rw-r--r--_profile10
1 files changed, 3 insertions, 7 deletions
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