aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2022-05-22 16:52:14 +0200
committerDavid Runge <dave@sleepmap.de>2022-05-22 16:52:14 +0200
commit0573e63a0c42f08be735bfbdee030f8d2af1a097 (patch)
tree64d860fc6b09b19312e1a79e4312fc360c5d0d99
parentd55d8a27715d39a1dab8b92cda4e84bb126dfe46 (diff)
downloaddotfiles-0573e63a0c42f08be735bfbdee030f8d2af1a097.tar.gz
dotfiles-0573e63a0c42f08be735bfbdee030f8d2af1a097.tar.bz2
dotfiles-0573e63a0c42f08be735bfbdee030f8d2af1a097.tar.xz
dotfiles-0573e63a0c42f08be735bfbdee030f8d2af1a097.zip
zsh: Switch to gnupg as ssh-agent
.config/zsh/includes/export.zsh: Use SSH_AUTH_SOCK as provided by gnupg.
-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