mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-02-02 05:41:10 -08:00
parent
642aadf984
commit
5ba9ffb069
src/prompt
|
@ -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 {
|
||||
|
|
|
@ -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())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue