diff --git a/scripts/code-wsl.sh b/scripts/code-wsl.sh new file mode 100755 index 0000000000000000000000000000000000000000..1098edd00611e4e00de5e0ccf07fae66eb24eaa7 --- /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