mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Cache terminall shell env (#274)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
c7f92494e0
commit
81c7590732
2 files changed
+23
-5
No files matched your search
@@ -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"],
|
||||
|
||||
Reference in new issue
Block a user