jschaf / powershell.el

An Emacs mode for editing and running Microsoft PowerShell code.
93 stars 30 forks source link

powershell-location-of-exe: default to 'pwsh' #32

Closed shawnhatori closed 2 years ago

shawnhatori commented 2 years ago

Windows PowerShell (powershell.exe) is the legacy 5.X and earlier version of PowerShell that ships with Windows. PowerShell Core (pwsh.exe) is the modern, cross-platform PowerShell that has been supported since 6.0 (January 2018) up through the most recent (December 2021) 7.2.1 release.

The current or as written will short-circuit on the built-in powershell.exe, regardless of whether pwsh.exe is installed. This change reverses this order so that those who have optionally installed PowerShell Core will have M-x powershell initiate the newer shell.

juergenhoetzel commented 2 years ago

Thanks!