You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo mkdir /opt/idea
# Allow user to run IDEA updates from GUI
sudo chmod 777 /opt/idea
curl -L "https://download.jetbrains.com/product?code=IIU&latest&distribution=linux"| tar vxz -C /opt/idea --strip 1
Copy useful files to Windows
windowsUserProfile=/mnt/c/Users/$(cmd.exe /c "echo %USERNAME%"2>/dev/null | tr -d '\r')# Windows Terminal settings
cp ~/dev/dotfiles/terminal-settings.json ${windowsUserProfile}/AppData/Local/Packages/Microsoft.WindowsTerminal_8wekyb3d8bbwe/LocalState/settings.json
# Avoid too much RAM consumption
cp ~/dev/dotfiles/.wslconfig ${windowsUserProfile}/.wslconfig
# Get the hacky network bridge script
cp ~/dev/dotfiles/wsl2-bridge.ps1 ${windowsUserProfile}/wsl2-bridge.ps1
# Run Xming at startup
cp ~/dev/dotfiles/config.xlaunch "${windowsUserProfile}/AppData/Roaming/Microsoft/Windows/Start Menu/Programs/Startup"
Then, when port forwarding does not work between WSL 2 and Windows
# This is a custom alias, see .aliases.zsh for more details
wslb