mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-12 19:39:20 -05:00
push code-wsl.sh
This commit is contained in:
4
scripts/code-wsl.sh
Executable file
4
scripts/code-wsl.sh
Executable 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
|
||||
Reference in New Issue
Block a user