microsoft/Terminal

"Open in Terminal" menu option should open in PowerShell or Ubuntu depending on folder location

Open

#14,753 opened on Jan 28, 2023

View on GitHub
 (7 comments) (2 reactions) (0 assignees)C++ (3,212 forks)batch import
Area-ShellExtensionHelp WantedIssue-FeatureProduct-Terminal

Repository metrics

Stars
 (35,764 stars)
PR merge metrics
 (Avg merge 27d 19h) (24 merged PRs in 30d)

Description

Description of the new feature/enhancement

Not sure if this is an enhancement versus an actual bug, but if have my default WSL distro be Ubuntu, and I click "Open in Terminal" in a Windows folder, I expect it to open up the PowerShell terminal, not the Ubuntu one. Vice versa if I have the default terminal as PowerShell and I click "Open in Terminal" in an Ubuntu folder, like in the below folders.

In other words, Terminal should know the context in which I'd want each terminal to open up.

image

Proposed technical implementation details (optional)

Contributor guide