Skip to content

Commit

Permalink
fix: PowerShell 7 is now pwsh.exe
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie committed Apr 29, 2024
1 parent 620761c commit 0dd49c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function escapeStyle(terminal: vscode.Terminal): EscapeStyle {

if (/\bcmd\.exe$/i.test(shellPath)) {
return "cmd";
} else if (/\bpowershell.exe$/i.test(shellPath)) {
} else if (/\b(powershell|pwsh).exe$/i.test(shellPath)) {
return "ps";
} else {
return "sh";
Expand Down

0 comments on commit 0dd49c0

Please sign in to comment.