summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rwxr-xr-xwsl/.local/bin/wsl-installer.sh18
-rw-r--r--wsl/.local/share/wsl/shell/wsl.plugin.zsh1
2 files changed, 1 insertions, 18 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"
diff --git a/wsl/.local/share/wsl/shell/wsl.plugin.zsh b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
index 0adfe40..22cd17d 100644
--- a/wsl/.local/share/wsl/shell/wsl.plugin.zsh
+++ b/wsl/.local/share/wsl/shell/wsl.plugin.zsh
@@ -5,7 +5,6 @@ alias powershell='/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe'
alias pwsh='/mnt/c/Program Files/PowerShell/7/pwsh.exe'
alias winget='/mnt/c/Users/tobyv/AppData/Local/Microsoft/WindowsApps/winget.exe'
alias scoop='/mnt/c/Users/tobyv/scoop/shims/scoop'
-alias ykhold='sudo systemctl stop usbip@wsl.service && echo "Press any key..." && read && sudo systemctl start usbip@wsl.service'
zvm_vi_yank () {
zvm_yank