From 0573e63a0c42f08be735bfbdee030f8d2af1a097 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 22 May 2022 16:52:14 +0200 Subject: zsh: Switch to gnupg as ssh-agent .config/zsh/includes/export.zsh: Use SSH_AUTH_SOCK as provided by gnupg. --- .config/zsh/includes/export.zsh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.config/zsh/includes') 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 -- cgit v1.2.3-70-g09d2