-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Description
Summary of the new feature / enhancement
As a user or admin I want to know much easier than it is today what path the process I am running in is.
I don't think this is too big a task to implement & would be useful for defensive & diagnostic purposes, especially for users that are new to PowerShell.
I am initially self assigning this issue as I don't think it should take long to have a suitable PR for this.
Proposed technical implementation details (optional)
Automatic Variable of either $pp or $PSProcessPath that outputs the path of the current pwsh process from [environment]::ProcessPath which isn't available in .NET Framework (so unavailable in Windows PowerShell)
Alternative Approach - a new Automatic $PSProcess Variable that essentially runs $PSProcess = Get-Process -id $PID so that you can get all details about the current PowerShell Process
Notes
Other alternative approaches outside of adding this in directly to PowerShell & were evaluated prior to raising this issue & the attached PR