aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/shell/wsl.sh
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-15 03:51:19 -0600
committerToby Vincent <tobyv13@gmail.com>2021-11-15 03:51:19 -0600
commit00a699c41b24e6149fdf7d12ad15cb1a77024bb1 (patch)
tree1988f8b2fac44587f43ebfd1a05c06dae2f61380 /shell/wsl.sh
parentf3096c5a63b1a6fb007c7a0dc522866d1fd0b320 (diff)
refactor: moved everything to symlinks
Diffstat (limited to 'shell/wsl.sh')
-rw-r--r--shell/wsl.sh64
1 files changed, 0 insertions, 64 deletions
diff --git a/shell/wsl.sh b/shell/wsl.sh
deleted file mode 100644
index 5e1e186..0000000
--- a/shell/wsl.sh
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/env bash
-
-WINHOME="/mnt/c/Users/$USER"
-[ "$PWD" = "$WINHOME" ] && cd
-# XDG Specs
-export XDG_DESKTOP_DIR="$WINHOME/Desktop"
-export XDG_DOCUMENTS_DIR="$WINHOME/Documents"
-export XDG_DOWNLOAD_DIR="$WINHOME/Downloads"
-export XDG_MUSIC_DIR="$WINHOME/Music"
-export XDG_PICTURES_DIR="$WINHOME/Pictures"
-export XDG_TEMPLATES_DIR="$WINHOME/Templates"
-export XDG_VIDEOS_DIR="$WINHOME/Videos"
-
-export EDITOR="code --wait"
-export DOCKER_HOST=${DOCKER_HOST:-tcp://0.0.0.0:2375}
-export DOCKER_MACHINE_NAME=${DOCKER_MACHINE_NAME:-$HOST}
-
-# unalias cb 2>/dev/null
-alias cb=clip.exe
-alias wsl=wsl.exe
-alias ykman='/mnt/c/Program\ Files/Yubico/YubiKey\ Manager/ykman.exe'
-alias dmu="docker-machine-wsl"
-
-docker-machine-wsl() {
- docker-machine-use $@
- export DOCKER_HOST=${DOCKER_HOST:-tcp://0.0.0.0:2375}
- export DOCKER_MACHINE_NAME=${DOCKER_MACHINE_NAME:-$HOST}
-}
-
-wt() {
- powershell.exe -NoProfile -c "wt $@"
-}
-
-wsl_cmd_proxy() {
- exe="$1"
- shift # past exe
-
- cmd=" ${1}"
- shift # past cmd
-
- args=""
- while [[ $# -gt 0 ]]; do
- case "$1" in
- -*)
- args+="${1} '${2}' "
- shift
- shift
- ;;
- *)
- args+="'${1}'"
- shift
- ;;
- esac
- args+=" "
- done
-
- powershell.exe -NoProfile -c 'cd $HOME;' "$exe" "$cmd" "$args"
-}
-
-function winget { wsl_cmd_proxy "winget.exe" "$@"; }
-function scoop { wsl_cmd_proxy "scoop" "$@"; }
-
-# https://github.com/validatedev/drop-cache-if-idle
-[ -z "$(ps -ef | grep cron | grep -v grep)" ] && sudo /etc/init.d/cron start &>/dev/null