diff --git a/src/prompt/extra.go b/src/prompt/extra.go index 231900bd..3a96f8ef 100644 --- a/src/prompt/extra.go +++ b/src/prompt/extra.go @@ -91,10 +91,6 @@ func (e *Engine) ExtraPrompt(promptType ExtraPromptType) string { } } - if promptType == Transient && e.Config.ShellIntegration { - str += terminal.CommandStart() - } - switch e.Env.Shell() { case shell.ZSH: if promptType == Transient { diff --git a/src/prompt/primary.go b/src/prompt/primary.go index da77fc9d..9ed3f671 100644 --- a/src/prompt/primary.go +++ b/src/prompt/primary.go @@ -89,7 +89,7 @@ func (e *Engine) writePrimaryPrompt(needsPrimaryRPrompt bool) { e.write(terminal.RenderItermFeatures(e.Config.ITermFeatures, e.Env.Shell(), e.Env.Pwd(), e.Env.User(), host)) } - if e.Config.ShellIntegration && e.Config.TransientPrompt == nil { + if e.Config.ShellIntegration { e.write(terminal.CommandStart()) }