diff options
Diffstat (limited to 'zsh')
-rw-r--r-- | zsh/wsl.zsh | 2 |
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 |