mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
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:
parent
8a22149f2f
commit
76e8bc4bae
@ -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...)
|
||||||
|
Loading…
Reference in New Issue
Block a user