Fixing WSL Alias
This commit is contained in:
18
.zshrc
18
.zshrc
@@ -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
|
||||
Reference in New Issue
Block a user