diff options
author | Toby Vincent <tobyv13@gmail.com> | 2022-07-28 21:09:30 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2022-07-28 21:09:30 -0500 |
commit | 10323fc0f25ea6218c179b895aa7cd78a4cd080b (patch) | |
tree | 4549b2c41605e476f26187e4844c8378abf1bc6e | |
parent | d766587519b9c5e07deb91ca743da672ba4a0ce9 (diff) |
feat(wsl): add symlinks to win bins and disable windows path sharing
-rwxr-xr-x | wsl/.local/bin/wsl-installer.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/wsl/.local/bin/wsl-installer.sh b/wsl/.local/bin/wsl-installer.sh index bdc50d0..27718fc 100755 --- a/wsl/.local/bin/wsl-installer.sh +++ b/wsl/.local/bin/wsl-installer.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/bin/sh DOTFILES="${HOME}/.dotfiles" @@ -9,6 +9,12 @@ echo "Setting up WSL" # link WINHOME ln -sfn "$WINHOME" ~/win +# link win binaries +ln -sf "$(wslpath 'C:\Windows\system32\wsl.exe')" ~/.local/bin/wsl.exe +ln -sf "$(wslpath 'C:\Windows\system32\clip.exe')" ~/.local/bin/clip.exe +ln -sf "$(wslpath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe')" ~/.local/bin/powershell.exe +ln -sf "$(wslpath 'C:\Program Files\PowerShell\7\pwsh.exe')" ~/.local/bin/pwsh.exe + # ssh-config sed -r 's|(RemoteForward\s+.+\s+)\/home\/tobyv\/\.gnupg\/S\.gpg-agent\.extra|\1127.0.0.1:4321|' "${DOTFILES}"/ssh/.ssh/config | sed '/Control/d' >"${WINHOME}/.ssh/config" |