mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix(plain): do not print title
This commit is contained in:
parent
9a6fbb6f52
commit
f9f309d1f4
|
@ -37,7 +37,7 @@ func (e *Engine) Primary() string {
|
||||||
e.renderBlock(block, cancelNewline)
|
e.renderBlock(block, cancelNewline)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(e.Config.ConsoleTitleTemplate) > 0 {
|
if len(e.Config.ConsoleTitleTemplate) > 0 && !e.Env.Flags().Plain {
|
||||||
title := e.getTitleTemplateText()
|
title := e.getTitleTemplateText()
|
||||||
e.write(e.Writer.FormatTitle(title))
|
e.write(e.Writer.FormatTitle(title))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue