Files
vscode/scripts/code-wsl.sh
2020-03-30 14:21:30 +02:00

5 lines
220 B
Bash
Executable File

#!/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