mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
do not unset ZDOTDIR otherwise interactive configs will be unnecessarily re-read (causing big performance problem for zsh command initialization)
This commit is contained in:
parent
efe567398a
commit
7a5afccab3
@ -257,10 +257,7 @@ func (z zshShellApi) MakeRcFileStr(pk *packet.RunPacketType) string {
|
||||
}
|
||||
rcBuf.WriteString("\n")
|
||||
}
|
||||
if shellenv.FindVarDecl(varDecls, "ZDOTDIR") == nil {
|
||||
rcBuf.WriteString("unset ZDOTDIR\n")
|
||||
rcBuf.WriteString("\n")
|
||||
}
|
||||
// do NOT unset ZDOTDIR, otherwise initialization will start to read initialization files from ~/ again
|
||||
for _, varName := range ZshUnsetVars {
|
||||
rcBuf.WriteString("unset " + shellescape.Quote(varName) + "\n")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user