fix(prompt): print FTCS in primary prompt only
Some checks are pending
Code QL / code-ql (push) Waiting to run
Azure Static Web Apps CI/CD / Build and Deploy (push) Waiting to run
Release / changelog (push) Waiting to run
Release / artifacts (push) Blocked by required conditions

resolves #5933
This commit is contained in:
Jan De Dobbeleer 2024-11-26 10:57:57 +01:00 committed by Jan De Dobbeleer
parent 642aadf984
commit 5ba9ffb069
2 changed files with 1 additions and 5 deletions

View file

@ -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 {

View file

@ -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())
}