Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass commands to new wt instance. Is this already supported? #4598

Closed
ugreg opened this issue Feb 15, 2020 · 4 comments
Closed

Pass commands to new wt instance. Is this already supported? #4598

ugreg opened this issue Feb 15, 2020 · 4 comments
Labels
Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Resolution-Answered Related to questions that have been answered

Comments

@ugreg
Copy link
Member

ugreg commented Feb 15, 2020

Description of the new feature/enhancement

Like how I can open a new command prompt with a command arg passed start cmd.exe /k echo Hello, World.

This does not work using Windows Terminal preview start C:\Users\me\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt /k Hello, World

Proposed technical implementation details (optional)

Implement this using cmd.exe like syntax.
start C:\Users\me\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminal_8wekyb3d8bbwe\wt /k Hello, World.

or even better start wt /k Hello, World.

@ugreg ugreg added the Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. label Feb 15, 2020
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Feb 15, 2020
@DHowett-MSFT
Copy link
Contributor

You can do wt cmd /k command if you want. Check out our docs folder for UsingCommandLineArgs.

@DHowett-MSFT DHowett-MSFT added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Issue-Feature Complex enough to require an in depth planning process and actual budgeted, scheduled work. labels Feb 15, 2020
@ugreg
Copy link
Member Author

ugreg commented Feb 15, 2020

Got it working thanks! I used this blog.

wt split-pane -p "Command Prompt" ; split-pane -p "Ubuntu" -d \\wsl$\Ubuntu\home\cinnak -H

terminal-command-args

@ugreg
Copy link
Member Author

ugreg commented Feb 15, 2020

@DHowett-MSFT is it possible to pass args to each split pane?

@DHowett-MSFT
Copy link
Contributor

Yes.

wt cmd /k cd \ ; split-pane -H cmd /k dir ; split-pane powershell -noexit -c echo hi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

2 participants