mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 19:39:39 -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)
|
||||
}
|
||||
|
||||
if len(e.Config.ConsoleTitleTemplate) > 0 {
|
||||
if len(e.Config.ConsoleTitleTemplate) > 0 && !e.Env.Flags().Plain {
|
||||
title := e.getTitleTemplateText()
|
||||
e.write(e.Writer.FormatTitle(title))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue