Skip to content

Commit

Permalink
fix(prompt): print FTCS in primary prompt only
Browse files Browse the repository at this point in the history
resolves #5933
  • Loading branch information
JanDeDobbeleer committed Nov 26, 2024
1 parent 642aadf commit 5ba9ffb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/prompt/extra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/prompt/primary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 5ba9ffb

Please sign in to comment.