diff --git a/src/main/node-shell-session.ts b/src/main/node-shell-session.ts index 83bb222851..2325e3f77c 100644 --- a/src/main/node-shell-session.ts +++ b/src/main/node-shell-session.ts @@ -30,7 +30,7 @@ export class NodeShellSession extends ShellSession { } args = ["exec", "-i", "-t", "-n", "kube-system", this.podId, "--", "sh", "-c", "((clear && bash) || (clear && ash) || (clear && sh))"] - const shellEnv = this.getShellEnv() + const shellEnv = await this.getCachedShellEnv() this.shellProcess = pty.spawn(shell, args, { cols: 80, cwd: this.cwd() || shellEnv["HOME"],