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