From d3aa56cb36d765a3c6ac8bd30e6779d64dca561b Mon Sep 17 00:00:00 2001 From: Richard Holliday Date: Tue, 4 Feb 2020 10:54:07 -0500 Subject: [PATCH] Update index.md - Tips and Tricks (#4451) pwsh parent process has been changed, confirmations in the replies to the referenced tweet. ## Description Updating documentation to reflect changes in pwsh parent process. ## References ## PR Checklist * [ ] Closes #xxx * [x] CLA signed. If not, go over [here](https://cla.opensource.microsoft.com/microsoft/Terminal) and sign the CLA * [ ] Tests added/passed * [x] Requires documentation to be updated * [ ] I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx ## Detailed Description of the Pull Request / Additional comments ## Validation Steps Performed --- doc/user-docs/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/user-docs/index.md b/doc/user-docs/index.md index c63bd1b13c..495bcca2b2 100644 --- a/doc/user-docs/index.md +++ b/doc/user-docs/index.md @@ -80,7 +80,7 @@ For an introduction to the various settings, see [Using Json Settings](UsingJson 1. In PowerShell you can discover if the Windows Terminal is being used by checking for the existence of the environment variable `WT_SESSION`. Under pwsh you can also use -`(Get-Process -Id $pid).Parent.Parent.ProcessName -eq 'WindowsTerminal'` +`(Get-Process -Id $pid).Parent.ProcessName -eq 'WindowsTerminal'` (ref https://twitter.com/r_keith_hill/status/1142871145852440576)