Add command line option to windows terminal to open window and execute command #13372

Open
opened 2026-01-31 03:41:03 +00:00 by claunia · 0 comments
Owner

Originally created by @jwlodek on GitHub (Apr 9, 2021).

Description of the new feature/enhancement

It would be nice to have an option to start a windows terminal from the command line and immediately run a command in it. I use this feature a lot in other terminals for example to open a new terminal directly into an ssh session.

Proposed technical implementation details (optional)

Something similar to the following would be good:

xfce4-terminal -x COMMAND
gnome-terminal -- COMMAND
start cmd.exe /C COMMAND
start powershell.exe /C COMMAND

example with cmd:

image

Originally created by @jwlodek on GitHub (Apr 9, 2021). # Description of the new feature/enhancement It would be nice to have an option to start a windows terminal from the command line and immediately run a command in it. I use this feature a lot in other terminals for example to open a new terminal directly into an ssh session. # Proposed technical implementation details (optional) Something similar to the following would be good: ``` xfce4-terminal -x COMMAND gnome-terminal -- COMMAND start cmd.exe /C COMMAND start powershell.exe /C COMMAND ``` example with cmd: ![image](https://user-images.githubusercontent.com/29227305/114117809-7b4bcd80-98b5-11eb-8891-2bb767a4d6d9.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#13372