From 33aaaa022a6d8b5a033ad5dea6d4ea11332726ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moreno?= Date: Mon, 30 Mar 2020 14:21:30 +0200 Subject: [PATCH] push code-wsl.sh --- scripts/code-wsl.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 scripts/code-wsl.sh 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 -- GitLab