Add 'sh' to list of shell programs

This commit is contained in:
Rashil Gandhi
2024-01-08 12:55:18 +05:30
committed by GitHub
parent 9685a0c87b
commit 8d4f687b5e
+1 -1
View File
@@ -657,7 +657,7 @@ function info_resolution {
# ===== TERMINAL =====
# this section works by getting the parent processes of the current powershell instance.
function info_terminal {
$programs = 'powershell', 'pwsh', 'winpty-agent', 'cmd', 'zsh', 'bash', 'fish', 'env', 'nu', 'elvish', 'csh', 'tcsh', 'python', 'xonsh'
$programs = 'powershell', 'pwsh', 'winpty-agent', 'cmd', 'zsh', 'sh', 'bash', 'fish', 'env', 'nu', 'elvish', 'csh', 'tcsh', 'python', 'xonsh'
if ($PSVersionTable.PSEdition.ToString() -ne 'Core') {
$parent = Get-Process -Id (Get-CimInstance -ClassName Win32_Process -Filter "ProcessId = $PID" -Property ParentProcessId -CimSession $cimSession).ParentProcessId -ErrorAction Ignore
for () {