| 1. |
Solve : New Windows 10 terminal? |
|
Answer» I wonder if anyone has tried the NEW Windows Terminal? It's in the Microsoft Store (Win 10 only). I know it's just an alpha release, but it seems fairly complete. Of course now I'm down the rabbit hole. Yup. A whole Saturday. Quote I couldn't get the command line to work directly, instead it would always start the distro bash itself, but not run ssh- even though the same wsl command in command prompt did in fact start SSH. Note: each profile must have a unique GUID, I got mine from a web GUI generator. Odd. I did it like this... in a profile, the "commandline" string value is like this (you aren't using bash.exe are you? Use wsl.exe.) -u name is your USERNAME in the wsl distro -l name is your remote host username wsl.exe -d Legacy -u mike -e ssh 192.168.0.5 -l mike you have to get the wsl -d distro name right, mine is "Legacy", it's WSL Ubuntu from before the distros got in the Windows Store. Find out your name(s) by doing wsl -l at the cmd prompt. Should work, I think. Quote My only real complaint about the application itself though is that the tabs are in the titlebar. I've always disliked that trend (Thanks Google Chrome...) In this case, It means moving the window requires using the area right next to the caption buttons. In the settings JSON, in the Global section, change the Boolean value showTabsInTitlebar to false Hope this helps. Quote wsl.exe -d Legacy -u mike -e ssh 192.168.0.5 -l mike Everything after -e is the wsl bash command Thanks, I think it must have been the guid, changing it worked. I imagine what happened is it ended up somehow using data from both- I think I had considered the GUID but figured it couldn't matter since it did use the new name in the drop down; but when SELECTED must have been identifying it based on GUID and therefore grabbing the command line for the standard Ubuntu profile. Quote In the settings JSON, in the Global section, change the Boolean value showTabsInTitlebar to falseBrilliant, my only real issue has a config!Re the GUID, that was my learning path, too. I just copied the whole WSL profile and tinkered around, but initially left the GUID the same, like you. I wish the tab text could be customised to say e.g. "Pi", Debian", "WSL", etc. but you can change the icons. As supplied the icon paths look like ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png. On my install that leads to a png in C:\Program Files\WindowsApps\Microsoft.WindowsTerminal_0.2.1715.0_x64__8wekyb3d8bbwe\ProfileIcons, but you can make it any path you like e.g. c:\myicons\debian.png. The ability to set a custom icon for each profile means that each tab can have its own visual identity, but what appears as tab text is inconsistent; the ssh session on the Debian machine has the Debian prompt, but the Pi retains the wsl.exe command line. |
|