Skip to content

Commit

Permalink
backport zdotdir fix to v0.6.x release
Browse files Browse the repository at this point in the history
  • Loading branch information
sawka committed Feb 10, 2024
1 parent 51ee7be commit 592e023
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions waveshell/pkg/shellapi/zshapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit 592e023

Please sign in to comment.