aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-05-08 17:10:59 -0500
committerToby Vincent <tobyv13@gmail.com>2021-05-08 17:10:59 -0500
commit1f68da8622aab4e4394461ba37ac04c4b854e0c7 (patch)
tree4dc79f6ff07ace919b32568e2e7dbc36ac48d900
parent71308bbc41d2477f2445d346043dfed79b7645c2 (diff)
feat: added agent extra to gpgrst
-rw-r--r--zsh/wsl.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/zsh/wsl.zsh b/zsh/wsl.zsh
index 0a9da05..4ef0400 100644
--- a/zsh/wsl.zsh
+++ b/zsh/wsl.zsh
@@ -85,9 +85,11 @@ alias gpgrst=gpg-reset
function gpg-reset() {
gpg-connect-agent.exe KILLAGENT /bye &>/dev/null
[ -e $GPG_AGENT_SOCK ] && rm $GPG_AGENT_SOCK
+ [ -e $GPG_EXTRA_SOCK ] && rm $GPG_EXTRA_SOCK
[ -e $SSH_AUTH_SOCK ] && rm $SSH_AUTH_SOCK
pkill -f 'socat.*wsl2-ssh-pageant.exe'
gpg-connect-agent.exe /bye &>/dev/null
(setsid nohup socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"$ZSH_BASE/ssh/wsl2-ssh-pageant.exe" &>/dev/null &)
(setsid nohup socat UNIX-LISTEN:$GPG_AGENT_SOCK,fork EXEC:"$ZSH_BASE/ssh/wsl2-ssh-pageant.exe --gpg S.gpg-agent" &>/dev/null &)
+ (setsid nohup socat UNIX-LISTEN:$GPG_EXTRA_SOCK,fork EXEC:"$ZSH_BASE/ssh/wsl2-ssh-pageant.exe --gpg S.gpg-agent.extra" &>/dev/null &)
} \ No newline at end of file