1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Disable oh-my-zsh auto-update prompt when resolving shell environment (#1848)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2020-12-23 11:58:15 +02:00
parent ecf930f5f5
commit 52c642b3a4

View File

@ -120,6 +120,7 @@ export class ShellSession extends EventEmitter {
if(path.basename(env["PTYSHELL"]) === "zsh") { if(path.basename(env["PTYSHELL"]) === "zsh") {
env["OLD_ZDOTDIR"] = env.ZDOTDIR || env.HOME; env["OLD_ZDOTDIR"] = env.ZDOTDIR || env.HOME;
env["ZDOTDIR"] = this.kubectlBinDir; env["ZDOTDIR"] = this.kubectlBinDir;
env["DISABLE_AUTO_UPDATE"] = "true";
} }
env["PTYPID"] = process.pid.toString(); env["PTYPID"] = process.pid.toString();