aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/zsh/includes/export.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/.config/zsh/includes/export.zsh b/.config/zsh/includes/export.zsh
index f923553..82e8246 100644
--- a/.config/zsh/includes/export.zsh
+++ b/.config/zsh/includes/export.zsh
@@ -82,12 +82,14 @@ if command -v brew > /dev/null; then
fi
# GnuPG
-export GPG_TTY=$TTY
+export GPG_TTY=$(tty)
export GPG_AGENT_INFO=""
# ssh-agent
if [[ $UID -ne 0 ]] && [[ $VENDOR != "apple" ]];then
- export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
+ export SSH_AGENT_PID=""
+ export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh"
+# export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
fi
# tmux