Fixing WSL Alias

This commit is contained in:
MangoPig
2025-12-03 02:43:35 +00:00
parent dc33ab44c4
commit 9e7d121354
2 changed files with 18 additions and 18 deletions

18
.zshrc
View File

@@ -54,21 +54,3 @@ eval "$(zoxide init --cmd cd zsh)"
# Add to PATH
export PATH="$HOME/.local/bin:$PATH"
# ---------------------------------------------------------------------
# DYNAMIC VS CODE PATH (Run LAST)
# ---------------------------------------------------------------------
# Get Windows Username
WIN_USER=$(cmd.exe /c 'echo %USERNAME%' 2>/dev/null | tr -d '\r')
# Define potential paths (User Install vs System Install)
VSCODE_USER="/mnt/c/Users/$WIN_USER/AppData/Local/Programs/Microsoft VS Code/bin"
VSCODE_SYS="/mnt/c/Program Files/Microsoft VS Code/bin"
# Add whichever exists to PATH
if [ -d "$VSCODE_USER" ]; then
export PATH="$PATH:$VSCODE_USER"
elif [ -d "$VSCODE_SYS" ]; then
export PATH="$PATH:$VSCODE_SYS"
fi