Search code examples
windows-terminal

WT maximized with profile


I am trying to launch the Windows Terminal maximized with a specific profile, however:

  • wt -M opens the terminal maximized with the default profile
  • wt -p "{profile name}" opens the terminal with the given profile
  • wt -M -p "{profile name}" causes an error:
    "The following argument was not expected: -M
    Run with --help for more information.
    "

What am I doing wrong?

Edit(18-08-20): Was confirmed as a bug on github As a side note, if you need 2 tabs or splitscreen, this seems to work: wt -p "profile 1" ; -M sptit-pane -p "profile 2"

Edit(30-01-21): Was fixed with this commit and relesed with Windows Terminal v1.5.10271.0


Solution

  • Probably a bug, I didnt look into it further. If you don't mind opening maximized with an extra tab you can do:

    wt -p "{profile name}" ; -M