mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-26 03:24:04 -08:00
fix(newline): use
by default
This commit is contained in:
parent
a72debd672
commit
534e7d025e
|
@ -115,8 +115,10 @@ func (e *Engine) pwd() {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Engine) getNewline() string {
|
func (e *Engine) getNewline() string {
|
||||||
|
newline := "\r\n"
|
||||||
|
|
||||||
if e.Plain || e.Env.Flags().Debug {
|
if e.Plain || e.Env.Flags().Debug {
|
||||||
return "\n"
|
return newline
|
||||||
}
|
}
|
||||||
|
|
||||||
// Warp terminal will remove a newline character ('\n') from the prompt, so we hack it in.
|
// Warp terminal will remove a newline character ('\n') from the prompt, so we hack it in.
|
||||||
|
@ -130,7 +132,7 @@ func (e *Engine) getNewline() string {
|
||||||
case e.Env.Shell() == shell.TCSH:
|
case e.Env.Shell() == shell.TCSH:
|
||||||
return terminal.LineBreak()
|
return terminal.LineBreak()
|
||||||
default:
|
default:
|
||||||
return "\n"
|
return newline
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue