Skip to content

Commit

Permalink
fix wsl script
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomoreno committed Mar 30, 2020
1 parent 6f5e1ed commit 1526a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function code() {

function code-wsl()
{
HOST_IP=$(powershell.exe -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress}")
HOST_IP=$(powershell.exe -Command "& {(Get-NetIPAddress | Where-Object {\$_.InterfaceAlias -like '*WSL*' -and \$_.AddressFamily -eq 'IPv4'}).IPAddress | Write-Host -NoNewline}")
export DISPLAY="$HOST_IP:0"

# in a wsl shell
Expand Down

0 comments on commit 1526a0b

Please sign in to comment.