microsoft / microsoft/terminal

Allow new tabs of different profiles to inherit current working directory on Windows

Open
#19,459 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature Needs-Attention Needs-Tag-Fix Needs-Triage
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

### Description of the new feature

When using Windows Terminal with multiple profiles (e.g., a normal PowerShell and a “PowerShell (Proxy)” profile), I want to open a new tab using a different profile but keep the current working directory from the active tab.

now, I’m forced to run this long command every single time:
wt -w 0 nt -p "PowerShell (Proxy)" --startingDirectory "$PWD"

### Proposed technical implementation details

_No response_

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Windows Terminal `wt -w 0 nt -p` command creates a tab and selects its profile on Windows. Identify where the active tab's current working directory is available, then determine how inheritance should work when the new profile is different; done means the example command is no longer needed and the new tab opens in the active directory.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, powershell
Domain
cli, desktop
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.