Closed jaliyaudagedara closed 2 weeks ago
With 23.x.x
, I have this,
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
//
},
{
"type": "newline"
},
{
//
}
],
"version": 3,
"auto_upgrade": true,
"final_space": true
}
And it's working.
@jaliyaudagedara this is no longer supported:
{
"type": "prompt",
"newline": true,
"alignment": "left",
"segments": []
}
It will be evaluated as empty and thus not print, if this worked before that was actually a bug. You need to add the newline to a block that actually has characters to print:
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{ .Shell }} in {{ .Folder }}",
"blocks": [
{
//
},
{
"newline": true,
//
}
],
"version": 3,
"auto_upgrade": true,
"final_space": true
}
Thanks @JanDeDobbeleer for your quick response.
I see, got it.
P.S: That worked!!!
Code of Conduct
What happened?
I have installed
24.0.4
today, and noticed the block isn't starting on anewline
.Theme
What OS are you seeing the problem on?
Windows
Which shell are you using?
powershell
Log output