From eb5361bba479166836733b7c842f3e4d0b319534 Mon Sep 17 00:00:00 2001 From: Adam Hellberg Date: Sat, 3 Dec 2022 15:40:25 +0100 Subject: [PATCH] Update gpg config for WSL(2) All my Windows PCs now use the same GPG config path. --- zsh/.zshrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 61386eb..06f13e9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -216,10 +216,7 @@ fi # Following two functions and utilities from: # https://github.com/BlackReloaded/wsl2-ssh-pageant wsl-gpg-proxy() { - local appdata=$(cmd.exe /c echo %APPDATA%) - if [[ "$HOST" == "PC673" ]]; then - appdata=$(cmd.exe /c echo %LOCALAPPDATA%) - fi + local appdata=$(cmd.exe /c echo %LOCALAPPDATA%) local gpg_conf_base="$(echo -E "${appdata}" | tr -d '[:space:]' | tr '\\' '/')/gnupg" export GPG_AGENT_SOCK="$HOME/.gnupg/S.gpg-agent" if ! ss -a | grep -q "$GPG_AGENT_SOCK"; then -- 2.54.0