![]() ![]() This will allow the wsl.exe command, which is probably now an App Execution Alias (when installed from the Store) to still function within WSL itself. Just a theory, but this may have been added to handle the addition of WSL itself to the Microsoft Store (currently in Preview under Windows 11). However, under Windows 11, this appears to have been changed, and app execution aliases are properly handled in WSL. Under Windows 10, WSL cannot run app execution aliases, as they aren't "real" executables that are handled by the WSL binfmt_misc implementation. "UWP", "Universal", "Metro", and "Modern") app, rather than a "real" Windows binary. exe that is just designed to launch a Microsoft Store (a.k.a. Wt.exe -window 0 new-tab -profile "Ubuntu /bin/sh" -title "host3" -tabColor "#00F" ssh host3įootnote: Windows Terminal's wt.exe is what is known as an "App Execution Alias". Wt.exe -window 0 new-tab -profile "Ubuntu /bin/sh" -title "host2" -tabColor "#0F0" ssh host2 Wt.exe -window 0 new-tab -profile "Ubuntu /bin/sh" -title "host1" -tabColor "#F00" ssh host1 ![]() Name the profile something like "Ubuntu /bin/sh".Create a new profile in Windows Terminal with a Command line option of:.In that case, I recommend setting up a new Windows Terminal profile that will launch Ubuntu with just /bin/sh. ![]() is getting in the way of this being as "clean" as it should be. Or (while I didn't see this problem), as the article you linked mentions, the starting directory directory.Or something in your Ubuntu shell startup scripts.Something in your Windows Terminal's Ubuntu profile commandline.Wt.exe -window 0 new-tab -profile "Ubuntu" -title "host3" -tabColor "#00F" ssh host3 Wt.exe -window 0 new-tab -profile "Ubuntu" -title "host2" -tabColor "#0F0" ssh host2 Wt.exe -window 0 new-tab -profile "Ubuntu" -title "host1" -tabColor "#F00" ssh host1 Using the long-form of each option for clarity, that shell script should typically be: #!/usr/bin/env sh See footnote at the bottom of this answer for the reason why. For Windows 10, use cmd.exe /c to call wt.exe per answer. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |