diff options
author | Aaron LI <aly@aaronly.me> | 2017-10-20 08:28:29 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-10-20 08:28:29 +0800 |
commit | 2b381b69a349eb7cf2b39b5e72595dd5e8ffb8c3 (patch) | |
tree | 5c054c35269e04b70e3e763db12f61da53abde1b /_profile | |
parent | dfce3c52ba94ef755a19e08982d1d5af54ddf37d (diff) | |
download | dotfiles-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-- | _profile | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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 |