mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-09 20:44:03 -08:00
c24ca82f17
this deprecates the "newline" block and favours using the newline property on the Block component. For backwards compatibility we'll keep recognizing the newline block for the time being. resolves #607
79 lines
2.4 KiB
JSON
79 lines
2.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "os",
|
|
"style": "powerline",
|
|
"foreground": "cyan",
|
|
"properties": {
|
|
"prefix": "",
|
|
"postfix": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "cyan",
|
|
"properties": {
|
|
"style": "full"
|
|
}
|
|
},
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "lightYellow",
|
|
"properties": {
|
|
"prefix": ":: <lightBlue>git(</>",
|
|
"postfix": "<lightBlue>)</>"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "right",
|
|
"segments": [
|
|
{
|
|
"type": "python",
|
|
"style": "plain",
|
|
"foreground": "lightRed",
|
|
"properties": {
|
|
"display_virtual_env": true,
|
|
"display_version": false,
|
|
"prefix": "[ ",
|
|
"postfix": " ]",
|
|
"display_mode": "always"
|
|
}
|
|
},
|
|
{
|
|
"type": "time",
|
|
"style": "plain",
|
|
"foreground": "lightGreen"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "exit",
|
|
"style": "powerline",
|
|
"foreground": "lightGreen",
|
|
"properties": {
|
|
"display_exit_code": false,
|
|
"always_enabled": true,
|
|
"error_color": "red",
|
|
"prefix": "\u279c"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|