mskyaxl / wsl-terminal

Terminal emulator for Windows Subsystem for Linux (WSL)
MIT License
3.12k stars 158 forks source link

How to share a window with cmd when call open-wsl ? #150

Closed HawkAaron closed 4 years ago

HawkAaron commented 5 years ago

Call open-wsl in cmd will launch a seperate window, but WSL stays in the same window. How can we call open-wsl just like bash without launch a seperate window ?

mskyaxl commented 4 years ago

This is not possible because wsl-terminal starts wsl in mintty which has its own window. What you're looking for is maybe something like:

C:\Users\\wsl-terminal\bin\mintty.exe -i "C:\Users\\wsl-terminal\open-wsl.exe" --rootfs=// --configdir "C:\Users\mosky\wsl-terminal\etc" -t " " cmd.exe

but then from cmd.exe you'll need to start somehow wsl using wslbridge