diff options
Diffstat (limited to 'wsl')
-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" |