We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f720b7c commit e77eddcCopy full SHA for e77eddc
src/MonoDevelop.PowerShell/MonoDevelop.PowerShell/PowerShellPathLocator.cs
@@ -55,9 +55,15 @@ void FindPowerShellPath ()
55
if (Platform.IsWindows) {
56
PowerShellExePath = GetWindowsPowerShellExePath ();
57
} else if (Platform.IsMac) {
58
- PowerShellExePath = "/usr/local/bin/powershell";
+ PowerShellExePath = "/usr/local/bin/pwsh";
59
+ if (!File.Exists (PowerShellExePath)) {
60
+ PowerShellExePath = "/usr/local/bin/powershell";
61
+ }
62
} else {
- PowerShellExePath = "/usr/bin/powershell";
63
+ PowerShellExePath = "/usr/bin/pwsh";
64
65
+ PowerShellExePath = "/usr/bin/powershell";
66
67
}
68
69
PowerShellPathExists = File.Exists (PowerShellExePath);
0 commit comments