From e70bba5e5d2df1f8b9dd21d3d14cc1aa0de249a4 Mon Sep 17 00:00:00 2001 From: xenua Date: Sat, 20 Nov 2021 10:26:45 +0100 Subject: [PATCH] chore: fix gpg ssh agent --- runcoms/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runcoms/zshrc b/runcoms/zshrc index dbe7a68..47da50a 100644 --- a/runcoms/zshrc +++ b/runcoms/zshrc @@ -11,6 +11,9 @@ if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then fi # Customize to your needs... +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" +gpg-connect-agent updatestartuptty /bye > /dev/null function mkcd() { mkdir $1 && cd $1 };