aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/wsl/.local/bin
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-08-04 13:57:50 -0500
committerToby Vincent <tobyv13@gmail.com>2022-08-04 13:57:50 -0500
commit0e3004446824a4c923b5c494ff331dad2dc455d3 (patch)
treec7ef404180bf70e7dfe8f3bf473e488d59a0554e /wsl/.local/bin
parent434247aed59ef631f4175b137cb47c9513423271 (diff)
feat(wsl): add systemd (via distrod) and yubikey (via usbipd-win)
Diffstat (limited to 'wsl/.local/bin')
-rwxr-xr-xwsl/.local/bin/gpg-init.sh26
-rwxr-xr-xwsl/.local/bin/wsl-installer.sh5
2 files changed, 0 insertions, 31 deletions
diff --git a/wsl/.local/bin/gpg-init.sh b/wsl/.local/bin/gpg-init.sh
deleted file mode 100755
index 35fb25a..0000000
--- a/wsl/.local/bin/gpg-init.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh
-
-# win_home="$(wslpath -u "$(wslvar HOMEDRIVE)$(wslvar HOMEPATH)")"
-wsl2_ssh_pageant_bin="$HOME/.ssh/wsl2-ssh-pageant.exe"
-config_path="C\:/Users/$USER/AppData/Local/gnupg"
-
-if ! test -x "$wsl2_ssh_pageant_bin"; then
- echo >&2 "WARNING: $wsl2_ssh_pageant_bin is not executable."
-else
- gpg-connect-agent.exe /bye >/dev/null 2>&1
-
- if ! ss -a | grep -q "$SSH_AUTH_SOCK"; then
- rm -f "$SSH_AUTH_SOCK"
- (setsid nohup socat UNIX-LISTEN:"$SSH_AUTH_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin --gpgConfigBasepath ${config_path}" >/dev/null 2>&1 &)
- fi
-
- if ! ss -a | grep -q "$GPG_AGENT_SOCK"; then
- rm -rf "$GPG_AGENT_SOCK"
- (setsid nohup socat UNIX-LISTEN:"$GPG_AGENT_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin --gpgConfigBasepath ${config_path} -gpg S.gpg-agent" >/dev/null 2>&1 &)
- fi
-
- if ! ss -a | grep -q "${GPG_AGENT_SOCK}.extra"; then
- rm -rf "${GPG_AGENT_SOCK}.extra"
- (setsid nohup socat UNIX-LISTEN:"${GPG_AGENT_SOCK}.extra,fork" EXEC:"$wsl2_ssh_pageant_bin --gpgConfigBasepath ${config_path} -gpg S.gpg-agent.extra" >/dev/null 2>&1 &)
- fi
-fi
diff --git a/wsl/.local/bin/wsl-installer.sh b/wsl/.local/bin/wsl-installer.sh
index 27718fc..c923724 100755
--- a/wsl/.local/bin/wsl-installer.sh
+++ b/wsl/.local/bin/wsl-installer.sh
@@ -37,11 +37,6 @@ for f in "$HOME"/.config/alacritty/*; do
esac
done
-# install wsl2-ssh-pageant
-rm -f "${HOME}"/.ssh/wsl2-ssh-pageant.exe
-curl -sL "https://github.com/BlackReloaded/wsl2-ssh-pageant/releases/latest/download/wsl2-ssh-pageant.exe" >"${HOME}"/.ssh/wsl2-ssh-pageant.exe
-chmod +x "${HOME}"/.ssh/wsl2-ssh-pageant.exe
-
# install xclip/xsel
curl -sL "https://raw.githubusercontent.com/Konfekt/win-bash-xclip-xsel/master/clip.sh" >"${HOME}"/.local/bin/xclip
curl -sL "https://raw.githubusercontent.com/Konfekt/win-bash-xclip-xsel/master/clip.sh" >"${HOME}"/.local/bin/xsel