aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/wsl/.local
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2022-07-01 23:57:37 -0500
committerToby Vincent <tobyv13@gmail.com>2022-07-01 23:57:37 -0500
commit5ff3e50aadda43712b98d76210042a924a3cd295 (patch)
tree3afa9cf7ab08fc8e5fc541d6a90af27de2918f80 /wsl/.local
parente24a07eb94fc76bb2825cd79462e9260e605c9a5 (diff)
feat(alacritty): source optional local config
Diffstat (limited to 'wsl/.local')
-rwxr-xr-xwsl/.local/bin/wsl-installer.sh17
1 files changed, 10 insertions, 7 deletions
diff --git a/wsl/.local/bin/wsl-installer.sh b/wsl/.local/bin/wsl-installer.sh
index 44c0fff..0229a35 100755
--- a/wsl/.local/bin/wsl-installer.sh
+++ b/wsl/.local/bin/wsl-installer.sh
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/usr/bin/env sh
DOTFILES="${HOME}/.dotfiles"
@@ -11,7 +11,7 @@ ln -sfn "$WINHOME" ~/win
# 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"
+ sed '/Control/d' >"${WINHOME}/.ssh/config"
# Create windows symlinks to dotfiles
mkln.sh "$@" "$HOME"/.gitconfig "${WINHOME}"/.gitconfig
@@ -21,7 +21,10 @@ mkln.sh "$@" "$HOME"/.gnupg/scdaemon.conf "${WINHOME}"/AppData/Roaming/gnupg/scd
mkln.sh "$@" "$HOME"/.config/alacritty/alacritty.yml "${WINHOME}"/AppData/Roaming/alacritty/alacritty.yml
for f in "$HOME"/.config/alacritty/*; do
- mkln.sh "$@" "$f" "${WINHOME}"/.config/alacritty/"$(basename "$f")"
+ case "$f" in
+ *shell.yml) echo "Skipping $f" ;;
+ *) mkln.sh "$@" "$f" "${WINHOME}"/.config/alacritty/"$(basename "$f")" ;;
+ esac
done
# install wsl2-ssh-pageant
@@ -36,10 +39,10 @@ chmod +x "${HOME}"/.local/bin/xclip
chmod +x "${HOME}"/.local/bin/xsel
# https://github.com/wslutilities/wslu
-command -v wslview &>/dev/null || 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
+command -v wslview >&/dev/null || 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"