Skip to content

Instantly share code, notes, and snippets.

@ZhanZiyuan
Last active March 26, 2024 14:25
Show Gist options
  • Save ZhanZiyuan/505c20f70ca42376224003cef91bbc00 to your computer and use it in GitHub Desktop.
Save ZhanZiyuan/505c20f70ca42376224003cef91bbc00 to your computer and use it in GitHub Desktop.
Create new tabs in one instance of Windows Terminal from the command line, based on the profile names assigned.
# Launch Windows Terminal Profiles
#
# Please refer to:
# https://learn.microsoft.com/zh-cn/windows/terminal/command-line-arguments?tabs=powershell
wt.exe `
new-tab `
--profile "Windows PowerShell" `
--startingDirectory "C:\Users\user\Downloads" `
--tabColor "#1f86eb" `; `
new-tab `
--profile "PowerShell" `
--startingDirectory "C:\Users\user\Downloads" `
--tabColor "#437aa8" `; `
new-tab `
--profile group_name `
--title "(base) 3.8" --suppressApplicationTitle `
--tabColor "#b7177d" `; `
new-tab `
--profile group_name `
--title "(base) 3.11" --suppressApplicationTitle `
--tabColor "#6455be" `; `
new-tab `
--profile group_name `
--title "top - 3.10" --suppressApplicationTitle `
--tabColor "#8a2be2" `; `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment