Cache terminall shell env (#274)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-04-21 19:49:23 +03:00
1 parent c7f92494e0
commit 81c7590732
2 files changed
+23 -5

No files matched your search

+1 -1
View File
@@ -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"],