File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 22$ppid = (gwmi win32_process - Filter " processid='$pid '" ).parentprocessid
33$pname = (Get-Process - id $ppid ).Name
44While ($true ) {
5- if ($pname -eq " cmd" -Or $pname -eq " powershell" ) {
5+ if ($pname -eq " cmd" -Or $pname -eq " powershell" -Or $pname -eq " pwsh " ) {
66 Write-Host (" {0}.exe" -f $pname )
77 Break
88 }
Original file line number Diff line number Diff line change @@ -549,9 +549,8 @@ def get_windows_shell():
549549 env = get_subprocess_env (options , gst_version )
550550 if os .name == 'nt' :
551551 shell = get_windows_shell ()
552- if shell == 'powershell.exe' :
553- new_args = ['powershell.exe' ]
554- new_args += ['-NoLogo' ]
552+ if shell in ['powershell.exe' , 'pwsh.exe' ]:
553+ new_args = [shell , '-NoLogo' ]
555554 if not args :
556555 prompt = 'function global:prompt { "[gst-' + gst_version + '"+"] PS " + $PWD + "> "}'
557556 new_args += ['-NoExit' , '-Command' , prompt ]
You can’t perform that action at this time.
0 commit comments