diff --git a/scripts/code-wsl.sh b/scripts/code-wsl.sh new file mode 100755 index 00000000000..1098edd0061 --- /dev/null +++ b/scripts/code-wsl.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +set -e +HOST_IP=$(powershell.exe -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress}") +DISPLAY="$HOST_IP:0" ./scripts/code.sh