We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ee7be commit 592e023Copy full SHA for 592e023
1 file changed
waveshell/pkg/shellapi/zshapi.go
@@ -257,10 +257,7 @@ func (z zshShellApi) MakeRcFileStr(pk *packet.RunPacketType) string {
257
}
258
rcBuf.WriteString("\n")
259
260
- if shellenv.FindVarDecl(varDecls, "ZDOTDIR") == nil {
261
- rcBuf.WriteString("unset ZDOTDIR\n")
262
- rcBuf.WriteString("\n")
263
- }
+ // do NOT unset ZDOTDIR, otherwise initialization will start to read initialization files from ~/ again
264
for _, varName := range ZshUnsetVars {
265
rcBuf.WriteString("unset " + shellescape.Quote(varName) + "\n")
266
0 commit comments