aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/shell
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-11-05 15:46:29 -0500
committerToby Vincent <tobyv13@gmail.com>2021-11-05 15:46:29 -0500
commita8dc1eff5b02e0e53012bebc39c8df5745274bc9 (patch)
treebdd6ee5ae3fa971dad0d38ec42fa468e82db5a12 /shell
parent7d9ee40dee9813ac305d3cb4f280d2f9623f21fd (diff)
fix: fixed issue with wt startup dir (again)
Diffstat (limited to 'shell')
-rw-r--r--shell/wsl.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/wsl.sh b/shell/wsl.sh
index 06e2d7e..7fe3368 100644
--- a/shell/wsl.sh
+++ b/shell/wsl.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
-WINHOME="$(wslpath "$(powershell.exe -NoProfile -c \$HOME)")"
-
+WINHOME="/mnt/c/Users/$USER"
+[ "$PWD" = "$WINHOME" ] && cd
# XDG Specs
export XDG_DESKTOP_DIR="$WINHOME/Desktop"
export XDG_DOCUMENTS_DIR="$WINHOME/Documents"
@@ -52,7 +52,7 @@ wsl_cmd_proxy() {
esac
args+=" "
done
-
+
powershell.exe -NoProfile -c 'cd $HOME;' "$exe" "$cmd" "$args"
}