Skip to content

Commit 583ad9a

Browse files
committed
Use pwsh as cmd on non-Windows platforms
powershell.exe is only provided by Windows PowerShell, PSCore (ie non-Windows) uses pwsh. PowerShell/PowerShell#4214 (comment)
1 parent b4ea52c commit 583ad9a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Support/Powershell.sublime-build

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2-
"cmd": ["powershell.exe", "-noprofile", "-file", "$file"],
3-
"selector": "source.powershell"
2+
"cmd": ["pwsh", "-noprofile", "-file", "$file"],
3+
"selector": "source.powershell",
4+
5+
"windows": {
6+
"cmd": ["powershell.exe", "-noprofile", "-file", "$file"],
7+
}
48
}

0 commit comments

Comments
 (0)