1

I found this article very helpful but would find it really useful to be able to do the same with an Ubuntu tab in WTP. Is this possible?

1 Answers1

0

As long as you can normally run Windows Terminal Preview with wt, then it shouldn't be a problem. If you have both the released version and Preview installed, then you'll need to change which one is assigned to wt.exe through the "Manage App Execution Aliases" settings in Windows.

You'll also need to:

  • Set your default Windows Terminal Profile to be Ubuntu. This is through the drop-down menu, Settings -> Startup tab -> Default Profile
  • Then, under the settings for that profile, make sure "Use parent process directory" is selected for the "Starting directory".

That should allow you to launch into Ubuntu using the technique described in this answer. Just type wt in File Explorer in a directory, and it should launch into it in Ubuntu.

Note that this will work for any Windows path or path in \\wsl$\Ubuntu (assuming that's your distro name), but it will not work for other distributions under \\wsl$\.

NotTheDr01ds
  • 28,025