diff options
author | David Runge <dave@sleepmap.de> | 2022-05-22 16:52:14 +0200 |
---|---|---|
committer | David Runge <dave@sleepmap.de> | 2022-05-22 16:52:14 +0200 |
commit | 0573e63a0c42f08be735bfbdee030f8d2af1a097 (patch) | |
tree | 64d860fc6b09b19312e1a79e4312fc360c5d0d99 | |
parent | d55d8a27715d39a1dab8b92cda4e84bb126dfe46 (diff) | |
download | dotfiles-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.zsh | 6 |
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 |