Last active
March 26, 2024 14:25
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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