branch: elpa/powershell
commit ce1f0ae0b2e41cd0934a9dfbf2ff016b1d14e9c0
Merge: d1b3f956693 2fe5858a837
Author: Jürgen Hötzel <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #32 from shawnhatori/default-to-pwsh
    
    powershell-location-of-exe: default to 'pwsh'
---
 powershell.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/powershell.el b/powershell.el
index a1f59c6d18f..b0967cc6319 100644
--- a/powershell.el
+++ b/powershell.el
@@ -787,8 +787,11 @@ that value is non-nil."
 
 ;;; Code:
 (defcustom powershell-location-of-exe
-   (or (executable-find "powershell") (executable-find "pwsh"))
-  "A string, providing the location of the powershell executable."
+   (or (executable-find "pwsh") (executable-find "powershell"))
+  "A string providing the location of the powershell executable. Since
+the newer PowerShell Core (pwsh.exe) does not replace the older Windows
+PowerShell (powershell.exe) when installed, this attempts to find the
+former first, and only if it doesn't exist, falls back to the latter."
   :group 'powershell
   :type 'string)
 

Reply via email to