From 17c26752993afe6c0e01cd96a522a41a3362c678 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Mon, 2 Sep 2024 20:11:27 -0700 Subject: [PATCH] fix gpg --- scripts/machine-specific-zsh/sakomoto.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/machine-specific-zsh/sakomoto.zsh b/scripts/machine-specific-zsh/sakomoto.zsh index dd03c1f..b0ddcc1 100644 --- a/scripts/machine-specific-zsh/sakomoto.zsh +++ b/scripts/machine-specific-zsh/sakomoto.zsh @@ -2,10 +2,10 @@ export PATH=$PATH:/home/lizzy/.cargo/bin eval "$(zoxide init --cmd z zsh)" -if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then - export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" -fi -export GPG_TTY=$(tty) +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent +gpg-connect-agent updatestartuptty /bye > /dev/null . /opt/asdf-vm/asdf.sh