Windows: use SHELL for terminal if set (#2168)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2021-02-18 07:30:48 +02:00
1 parent 174bba98d7
commit 32908883f8
1 file changed
+1 -1
+1 -1
View File
@@ -108,7 +108,7 @@ export class ShellSession extends EventEmitter {
if(isWindows) {
env["SystemRoot"] = process.env.SystemRoot;
env["PTYSHELL"] = "powershell.exe";
env["PTYSHELL"] = process.env.SHELL || "powershell.exe";
env["PATH"] = pathStr;
} else if(typeof(process.env.SHELL) != "undefined") {
env["PTYSHELL"] = process.env.SHELL;