aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/wsl/.local
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2023-01-08 10:29:00 -0600
committerToby Vincent <tobyv13@gmail.com>2023-01-08 10:40:35 -0600
commit932b833ca6e264ea33085d50baa6faaf64505977 (patch)
treee5b0c150825babc5eba326e1afcde268cba7b537 /wsl/.local
parente71fcb571d3c6e45488a7e2736959e15da30cbef (diff)
fix(wsl): reorganize and clean wsl package
move the wsl alacritty settings, local.yml, out of the repo.
Diffstat (limited to 'wsl/.local')
-rwxr-xr-xwsl/.local/bin/discord-relay.sh3
-rw-r--r--wsl/.local/share/wsl/shell/wsl.plugin.zsh21
2 files changed, 2 insertions, 22 deletions
diff --git a/wsl/.local/bin/discord-relay.sh b/wsl/.local/bin/discord-relay.sh
index 3932908..d0f8cc6 100755
--- a/wsl/.local/bin/discord-relay.sh
+++ b/wsl/.local/bin/discord-relay.sh
@@ -1,2 +1,3 @@
#!/bin/sh
-exec socat UNIX-LISTEN:/var/run/discord-ipc-0,fork,group=discord,umask=007 EXEC:"npiperelay.exe -ep -s //./pipe/discord-ipc-0",nofork >/dev/null 2>&1
+
+exec socat UNIX-LISTEN:/var/run/discord-ipc-0,fork,group=discord,umask=007 EXEC:"/home/tobyv/.local/bin/npiperelay.exe -ep -s //./pipe/discord-ipc-0",nofork
diff --git a/wsl/.local/share/wsl/shell/wsl.plugin.zsh b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
index 4c654ab..4a65466 100644
--- a/wsl/.local/share/wsl/shell/wsl.plugin.zsh
+++ b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
@@ -1,31 +1,11 @@
#!/bin/sh
# shellcheck disable=2155
-# [ -n "${WSL_DISTRO_NAME+1}" ] || return 0
-
-WINHOME="/mnt/c/Users/$USER"
-# shellcheck disable=2164
-[ "$PWD" = "$WINHOME" ] && cd
-
-mkdir -p /tmp/xdg
-
-export DISPLAY="$(grep -m 1 nameserver /etc/resolv.conf | awk '{print $2}')":0
-export BROWSER=wslview
-export XDG_RUNTIME_DIR=/tmp/xdg
-export GPG_TTY="$(tty)"
-export SHELDON_PROFILE="wsl"
-
alias wsl="/mnt/c/Windows/system32/wsl.exe"
alias powershell="/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe"
alias pwsh="/mnt/c/Program Files/PowerShell/7/pwsh.exe"
alias ykman='/mnt/c/Program\ Files/Yubico/YubiKey\ Manager/ykman.exe'
-alias pip2="DISPLAY= pip2"
-alias pip3="DISPLAY= pip3"
-alias pip3.7="DISPLAY= pip3.7"
-alias pip3.10="DISPLAY= pip3.10"
-alias pip="DISPLAY= pip3"
-
wsl_path() {
win_path="$(powershell.exe "(get-command $1 -ErrorAction SilentlyContinue).Source")"
if [ ! -z "$win_path" ]; then
@@ -33,7 +13,6 @@ wsl_path() {
fi
}
-alias alacritty="$(wsl_path "alacritty")"
alias pwsh="$(wsl_path "pwsh")"
alias ykhold='sudo systemctl stop usbip@wsl.service && echo "Press any key..." && read && sudo systemctl start usbip@wsl.service'