push code-wsl.sh

This commit is contained in:
João Moreno committed 2020-03-30 14:21:30 +02:00
1 parent 3c7b3f4f5f
commit 33aaaa022a
1 file changed
+4
+4
View File
@@ -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