diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-02-06 11:26:59 -0600 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-02-06 15:51:22 -0600 |
commit | 10afd0fd3460fc6f00686a8e42102501533842a9 (patch) | |
tree | a997eece353459681e3ca310b52c9c3b59a0b996 /wsl/.local/bin/wsl-installer.sh | |
parent | f1799d5e759c5553e33164a490c2522004a6bf73 (diff) |
refactor(wsl): clean up wsl configs
Diffstat (limited to 'wsl/.local/bin/wsl-installer.sh')
-rwxr-xr-x | wsl/.local/bin/wsl-installer.sh | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/wsl/.local/bin/wsl-installer.sh b/wsl/.local/bin/wsl-installer.sh index bc7ef8f..a003754 100755 --- a/wsl/.local/bin/wsl-installer.sh +++ b/wsl/.local/bin/wsl-installer.sh @@ -1,11 +1,7 @@ #!/bin/sh -DOTFILES="${HOME}/.dotfiles" - WINHOME="$(wslpath c:\\Users\\"${USER}")" -echo "Setting up WSL" - # link WINHOME ln -sfn "$WINHOME" ~/win @@ -16,11 +12,8 @@ ln -sf "$(wslpath 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe')" ln -sf "$(wslpath 'C:\Program Files\PowerShell\7\pwsh.exe')" ~/.local/bin/pwsh.exe ln -sf "$(wslpath 'C:\Users\tobyv\AppData\Local\wsl-notify-send\wsl-notify-send.exe')" ~/.local/bin/notify-send -# 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" - # Create windows symlinks to dotfiles +mkln.sh "$@" "$HOME"/.ssh/config "${WINHOME}"/.ssh/config mkln.sh "$@" "$HOME"/.config/git/config "${WINHOME}"/.gitconfig mkln.sh "$@" "$HOME"/.gnupg/gpg.conf "${WINHOME}"/AppData/Roaming/gnupg/gpg.conf mkln.sh "$@" "$HOME"/.gnupg/gpg-agent.conf "${WINHOME}"/AppData/Roaming/gnupg/gpg-agent.conf @@ -39,12 +32,3 @@ for f in "$HOME"/.config/alacritty/*; do *) mkln.sh "$@" "$f" "${WINHOME}"/.config/alacritty/"$(basename "$f")" ;; esac done - -# https://github.com/wslutilities/wslu -command -v wslview >/dev/null 2>&1 || cat <<-EOF - wslu is not installed. - wslu (wslview) is needed to open browser windows from linux commands. - install instructions: https://github.com/wslutilities/wslu#installation -EOF - -echo "WSL has been set up" |