From 8c9e3b2fdc77ec9d70c32fc191a58a61fc2ca378 Mon Sep 17 00:00:00 2001 From: Sebastian Malton Date: Tue, 23 Nov 2021 14:34:18 -0500 Subject: [PATCH] Fix cwd not being respected for local shells on windows (#4395) --- src/main/shell-session/local-shell-session.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/shell-session/local-shell-session.ts b/src/main/shell-session/local-shell-session.ts index 1223ea7c3e..855dfd3dc9 100644 --- a/src/main/shell-session/local-shell-session.ts +++ b/src/main/shell-session/local-shell-session.ts @@ -50,7 +50,7 @@ export class LocalShellSession extends ShellSession { switch(path.basename(shell)) { case "powershell.exe": - return ["-NoExit", "-command", `& {Set-Location $Env:USERPROFILE; $Env:PATH="${helmpath};${kubectlPathDir};$Env:PATH"}`]; + return ["-NoExit", "-command", `& {$Env:PATH="${helmpath};${kubectlPathDir};$Env:PATH"}`]; case "bash": return ["--init-file", path.join(await this.kubectlBinDirP, ".bash_set_path")]; case "fish":