mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
parent
642aadf984
commit
5ba9ffb069
|
@ -91,10 +91,6 @@ func (e *Engine) ExtraPrompt(promptType ExtraPromptType) string {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if promptType == Transient && e.Config.ShellIntegration {
|
|
||||||
str += terminal.CommandStart()
|
|
||||||
}
|
|
||||||
|
|
||||||
switch e.Env.Shell() {
|
switch e.Env.Shell() {
|
||||||
case shell.ZSH:
|
case shell.ZSH:
|
||||||
if promptType == Transient {
|
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))
|
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())
|
e.write(terminal.CommandStart())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue