21.Open Terminal
1.Wt -p "Profile Name"
2.Wt -d "Path to directory" - open in a specific directory.
3.Wt -p "Windows Poweshell"/"Command Prompt" - set default terminal to open.
4.Wt -p "Profile1"; split-pane -p "Profile2" - split terminal
5.wt -d "Dir Path" ; new-tab -p "Profile-Name" - New Tab with specific Profile and Directory.
6.Execute a Command in a New Tab:-
wt ; new-tab -p "profile name" -d "path to dir" cmd /c "your command here"
7.Set the tab title:
wt -p "PowerShell" --title "My Custom Tab"
8.Open a new tab and run a command:
wt new-tab cmd /k "echo Hello, World!"
9.Open Windows Terminal in a specific directory:
wt -d "C:\path\to\directory"
10.Open multiple tabs or panes:
wt ; new-tab
wt ; split-pane
Resource:-
https://learn.microsoft.com/en-us/windows/terminal/command-line-arguments?tabs=windows
Comments
Post a Comment