-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
keep the same path after switching from powershell to command prompt #11774
Comments
Amassing notes here before the end of the day:
I'll come through and turn that into an actual reply tomorrow morning |
There is a workaround for this. You can use the -d option and "." (dot) notation to pass the current working directory to command prompt. For example, when you're in windows powershell, you can start command prompt with the command “wt -w 0 -p “Command Prompt” -d .” or "start cmd ." |
I think OP is referring to opening new profiles after running windows terminal from file explorer's context menu |
Okay, so lemme get this stright
and you want step 4 to open in Now, I think you're going to have to do the OSC9;9 thing to emit the working directory, and then wait for #10232 to allow opening a tab/pane with the same directory, but a different profile. Do I have that right? If so, I'm gonna call this one a duplicate of #10232. |
Yes you got it right, I want it exactly like that. |
Awesome, thanks! /dup #10232 |
Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report! |
Description of the new feature/enhancement
Proposed technical implementation details (optional)
When I open PowerShell by right-clicking in a folder, it opens in that path, but then when i switch to Command Prompt, it starts from User folder.
I want Windows Terminal to keep the same path after opening Command Prompt or other terminals from the tabs and not switch to their default path. so if i'm working with PowerShell in a specific directory and then open CMD from the same Terminal window, I want PowerShell to pass the current working directory to the CMD.
at least provide this as an option in Windows Terminal settings.
I'm using Windows 11 insider beta and the built-in Windows Terminal
Thanks
The text was updated successfully, but these errors were encountered: