From 78deede3be9e7154ef6d08b298548cb3fa478c95 Mon Sep 17 00:00:00 2001 From: Sam Al-Sapti Date: Mon, 27 Mar 2023 15:29:39 +0200 Subject: [PATCH] Kill remote gpg-agent when forwarding local one --- zsh/.config/zsh/gpg.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/zsh/.config/zsh/gpg.zsh b/zsh/.config/zsh/gpg.zsh index 74b0548..712cccc 100644 --- a/zsh/.config/zsh/gpg.zsh +++ b/zsh/.config/zsh/gpg.zsh @@ -3,5 +3,6 @@ if [[ -z $SSH_CONNECTION ]] && [[ $HOSTNAME != "toolbox" ]]; then gpgconf --launch gpg-agent gpg-connect-agent updatestartuptty /bye &> /dev/null else + gpgconf --kill all gpg-connect-agent reloadagent /bye &> /dev/null fi