fix: unquote zdotdir for starting zsh in wsl (#1574)

Due to the way this command is run, the quotes are not being handled by
the shell. Removing them allows them to be interpreted correctly in most
cases. This resolves #1569
This commit is contained in:
Sylvie Crowe 2024-12-19 12:43:22 -08:00 committed by GitHub
parent 8a22149f2f
commit 76e8bc4bae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -215,7 +215,7 @@ func StartWslShellProc(ctx context.Context, termSize waveobj.TermSize, cmdStr st
} }
if isZshShell(shellPath) { if isZshShell(shellPath) {
shellOpts = append(shellOpts, fmt.Sprintf(`ZDOTDIR="%s/.waveterm/%s"`, homeDir, shellutil.ZshIntegrationDir)) shellOpts = append(shellOpts, fmt.Sprintf(`ZDOTDIR=%s/.waveterm/%s`, homeDir, shellutil.ZshIntegrationDir))
} }
shellOpts = append(shellOpts, shellPath) shellOpts = append(shellOpts, shellPath)
shellOpts = append(shellOpts, subShellOpts...) shellOpts = append(shellOpts, subShellOpts...)