mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-14 06:54:05 -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
89 lines
2.1 KiB
JSON
89 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
|
|
"console_title": true,
|
|
"console_title_style": "template",
|
|
"console_title_template": "{{if .Root}}(Admin){{end}} {{.Path}}",
|
|
"blocks": [
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "root",
|
|
"style": "plain",
|
|
"foreground": "#BF616A",
|
|
"properties": {
|
|
"prefix": "",
|
|
"root_icon": "Admin"
|
|
}
|
|
},
|
|
{
|
|
"type": "path",
|
|
"style": "plain",
|
|
"foreground": "#81A1C1",
|
|
"properties": {
|
|
"prefix": "",
|
|
"style": "full"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "git",
|
|
"style": "plain",
|
|
"foreground": "#6C6C6C",
|
|
"properties": {
|
|
"prefix": "",
|
|
"display_stash_count": true,
|
|
"display_status": true,
|
|
"display_status_detail": true,
|
|
"display_upstream_icon": true,
|
|
"branch_icon": "",
|
|
"github_icon": "",
|
|
"branch_ahead_icon": "<#88C0D0>\u21e1 </>",
|
|
"branch_behind_icon": "<#88C0D0>\u21e3 </>",
|
|
"local_working_icon": "<#FFAFD7>\u002a</>"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"segments": [
|
|
{
|
|
"type": "executiontime",
|
|
"style": "plain",
|
|
"foreground": "#A3BE8C",
|
|
"properties": {
|
|
"style": "austin"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "prompt",
|
|
"alignment": "left",
|
|
"newline": true,
|
|
"segments": [
|
|
{
|
|
"type": "exit",
|
|
"style": "plain",
|
|
"foreground": "#B48EAD",
|
|
"properties": {
|
|
"prefix": "\u276f",
|
|
"display_exit_code": false,
|
|
"error_color": "#BF616A",
|
|
"always_enabled": true
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|