title: Open tabs in Windows Terminal w/ Ubuntu WSL & Zsh
body: <p>I'm writing a script to run on UBUNTU WSL in Windows.  I use zsh as my shell, but bash could work too here.</p>
  <p>I'd like that bash script to use <code>wt.exe</code> (Windows Terminal) to open some new tabs.</p>
  <p>Here's what I have so far:</p>
  <pre><code>#!/bin/bash
  
  cmd.exe /c &quot;wt.exe&quot; \
    new-tab --title 'a' --tabColor &quot;#f00&quot; wsl.exe &quot;ls&quot; \; \
    new-tab --title 'b' --tabColor &quot;#f33&quot; wsl.exe zsh -is -c &quot;ls&quot; \; \
    new-tab --title 'c' --tabColor &quot;#f99&quot; wsl.exe zsh -is &quot;ls&quot; \; \
    new-tab --title 'd' --tabColor &quot;#0f0&quot; wsl.exe zsh -i -c &quot;ls&quot; \; \
    new-tab --title 'e' --tabColor &quot;#3f3&quot; wsl.exe zsh -c &quot;ls&quot; \; \
    new-tab --title 'f' --tabColor &quot;#9f9&quot; wsl.exe zsh &quot;ls&quot; \; \
  </code></pre>
  <p>You'll need Windows 10 w/ Ubuntu WSL and Windows Terminal for that to work.</p>
  <p>This bash script opens a bunch of tabs.</p>
  <ul>
  <li>Tabs that <code>ls</code> immediately exit.</li>
  <li>Tabs that error stick around.</li>
  </ul>
  <p><a href="https://i.stack.imgur.com/YrYUc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YrYUc.png" alt="enter image description here" /></a>
  I'd like to automate:</p>
  <ul>
  <li>opening several tabs in different folders:</li>
  <li>run a command (yarn dev)</li>
  <li>cancel that command (ctrl-c) and have the terminal interactive instead of exit.</li>
  </ul>
  <p>I got this to work on previous version of these tools, but they changed.</p>
  <p>What's the new way?</p>