Skip to content

Identify WindowsTerminal process ID #5694

@jdhitsolutions

Description

@jdhitsolutions

Description of the new feature/enhancement

I'd like a way to identify the process ID associated with a Windows Terminal session. In PowerShell, I can see the session and profile ID variables. And it is easy enough to run Get-Process and find the Windows Terminal process. But what if there are 2 instances running? How can I tell which ID goes with which?

Proposed technical implementation details (optional)

PowerShell has a built-in variable $pid that helps me identify the current PowerShell process. It would be nice to either create a variable like $wtpid. Or add another environment variable that identifies the process ID of this Windows Terminal instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-FeatureComplex enough to require an in depth planning process and actual budgeted, scheduled work.Needs-Tag-FixDoesn't match tag requirementsResolution-Won't-FixWe're just really obstinate about this. There's probably a good reason.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions