fix wsl script
This commit is contained in:
parent
6f5e1edcd1
commit
1526a0ba1e
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ function code() {
|
||||||
|
|
||||||
function code-wsl()
|
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"
|
export DISPLAY="$HOST_IP:0"
|
||||||
|
|
||||||
# in a wsl shell
|
# in a wsl shell
|
||||||
|
|
Loading…
Reference in a new issue