I am trying to split the new Windows Terminal into 8 equal panes by running one or more commands.
Recently Microsoft added support for splitting the new Windows Terminal into panes "programmatically" by using the parameters:
split-pane -H or -V (Horizontal or Vertical pane)
I have tried a dozen combinations of the parameters, but it splits the terminal windows "wrong".
Here is an example:
wt `; split-pane -V -p "pwsh" `; split-pane -H -p "pwsh" `; split-pane -V -p "pwsh"
Here is the desired result:
How would I achieve this programmatically? It's possible to do in the Windows Terminal by using hotkeys ALT+SHIFT+MINUS and ALT+SHIFT+PLUS (see screenshot).